Module secp256k1zkp::aggsig

source ·
Expand description

Structs

Manages an instance of an aggsig multisig context, and provides all methods to act on that context

Constants

The 256 bits 0

Functions

Single-Signer addition of Signatures Returns: Ok(Signature) on success In: sig1: sig1 to add sig2: sig2 to add pubnonce_total: sum of public nonces
Single-Signer (plain old Schnorr, sans-multisig) export nonce Returns: Ok(SecretKey) on success In: msg: the message to sign seckey: the secret key
sign_singleDeprecated
Single-Signer (plain old Schnorr, sans-multisig) signature creation Returns: Ok(Signature) on success In: msg: the message to sign seckey: the secret key extra: if Some(), add this key to s secnonce: if Some(SecretKey), the secret nonce to use. If None, generate a nonce pubnonce: if Some(PublicKey), overrides the public nonce to encode as part of e final_nonce_sum: if Some(PublicKey), overrides the public nonce to encode as part of e
Single-Signer (plain old Schnorr, sans-multisig) signature verification Returns: Ok(Signature) on success In: sig: The signature msg: the message to verify pubnonce: if Some(PublicKey) overrides the public nonce used to calculate e pubkey: the public key pubkey_total: The total of all public keys (for the message in e) is_partial: whether this is a partial sig, or a fully-combined sig