Struct secp256k1::Secp256k1[][src]

pub struct Secp256k1<C> { /* fields omitted */ }

The secp256k1 engine, used to execute all signature operations

Methods

impl Secp256k1<None>
[src]

Creates a new Secp256k1 context with no capabilities (just de/serialization)

impl Secp256k1<All>
[src]

Creates a new Secp256k1 context with all capabilities

impl Secp256k1<SignOnly>
[src]

Creates a new Secp256k1 context that can only be used for signing

impl Secp256k1<VerifyOnly>
[src]

Creates a new Secp256k1 context that can only be used for verification

impl<C: Signing> Secp256k1<C>
[src]

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.

impl<C: Verification> Secp256k1<C>
[src]

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<C> Send for Secp256k1<C>
[src]

impl<C> Sync for Secp256k1<C>
[src]

impl<C> Clone for Secp256k1<C>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<C> PartialEq for Secp256k1<C>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<C> Eq for Secp256k1<C>
[src]

impl<C> Drop for Secp256k1<C>
[src]

Executes the destructor for this type. Read more