Struct secp256k1_test::Secp256k1 [] [src]

pub struct Secp256k1 { /* fields omitted */ }

The secp256k1 engine, used to execute all signature operations

Methods

impl Secp256k1
[src]

[src]

Create a Schnorr signature

[src]

Verify a Schnorr signature

[src]

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

impl Secp256k1
[src]

[src]

Creates a new Secp256k1 context

[src]

Creates a new Secp256k1 context with the specified capabilities

[src]

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

[src]

(Re)randomizes the Secp256k1 context for cheap sidechannel resistence; see comment in libsecp256k1 commit d2275795f by Gregory Maxwell

[src]

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.

[src]

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

[src]

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

[src]

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

[src]

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

impl Sync for Secp256k1
[src]

impl Clone for Secp256k1
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Secp256k1
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for Secp256k1
[src]

impl Debug for Secp256k1
[src]

[src]

Formats the value using the given formatter.

impl Drop for Secp256k1
[src]

[src]

Executes the destructor for this type. Read more