Struct bsv_wasm::ecdsa::ECDSA [−][src]
pub struct ECDSA {}
Expand description
Utility struct for low level ECDSA primitives
Implementations
pub fn sign_with_random_k(
private_key: &PrivateKey,
preimage: &[u8],
hash_algo: SigningHash,
reverse_k: bool
) -> Result<Signature>
pub fn sign_with_deterministic_k(
private_key: &PrivateKey,
preimage: &[u8],
hash_algo: SigningHash,
reverse_k: bool
) -> Result<Signature>
pub fn verify_digest(
message: &[u8],
pub_key: &PublicKey,
signature: &Signature,
hash_algo: SigningHash
) -> Result<bool>
Trait Implementations
The type that holds the reference to Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read more
Recover a Self::Anchor
from Self::Abi
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ECDSA
impl UnwindSafe for ECDSA