Struct etcommon_hash::SECP256K1 []

pub struct SECP256K1 { /* fields omitted */ }

Methods from __Deref<Target = Secp256k1>

Create a Schnorr signature

Verify a Schnorr signature

Retrieves the public key for which sig is a valid signature for msg. Requires a verify-capable context.

Generates a random keypair. Convenience function for key::SecretKey::new and key::PublicKey::from_secret_key; call those functions directly for batch key generation. Requires a signing-capable context.

Constructs a signature for msg using the secret key sk and RFC6979 nonce Requires a signing-capable context.

Constructs a signature for msg using the secret key sk and RFC6979 nonce Requires a signing-capable context.

Determines the public key for which sig is a valid signature for msg. Requires a verify-capable context.

Checks that sig is a valid ECDSA signature for msg using the public key pubkey. Returns Ok(true) on success. Note that this function cannot be used for Bitcoin consensus checking since there may exist signatures which OpenSSL would verify but not libsecp256k1, or vice-versa. Requires a verify-capable context.

Trait Implementations

impl __Deref for SECP256K1

The resulting type after dereferencing

The method called to dereference a value

impl LazyStatic for SECP256K1