Expand description
This module implements high-level Rust bindings for a Schnorr-based multi-signature scheme called MuSig2 paper. It is compatible with bip-schnorr.
The documentation in this module is for reference and may not be sufficient for advanced use-cases. A full description of the C API usage along with security considerations can be found in C-musig.md.
Structs§
- Aggregated
Nonce - Musig aggregated nonce computed by aggregating all individual public nonces
- Aggregated
Signature - The aggregated signature of all partial signatures.
- Invalid
Tweak Err - Musig tweaking related error.
- KeyAgg
Cache - Cached data related to a key aggregation.
- Partial
Signature - A Musig partial signature.
- Public
Nonce - An individual MuSig public nonce. Not to be confused with
AggregatedNonce. - Secret
Nonce - Musig Secret Nonce.
- Session
- A musig Signing session.
- Session
Secret Rand - Session Id for a MuSig session.
Enums§
- Parse
Error - Musig parsing errors
Constants§
- AGGNONCE_
SERIALIZED_ SIZE - Serialized size (in bytes) of the aggregated nonce. The serialized form is used for transmitting or storing the aggregated nonce.
- PART_
SIG_ SERIALIZED_ SIZE - Serialized size (in bytes) of a partial signature. The serialized form is used for transmitting partial signatures to be aggregated into the final signature.
- PUBNONCE_
SERIALIZED_ SIZE - Serialized size (in bytes) of an individual public nonce. The serialized form is used for transmission between signers.
Functions§
- new_
nonce_ pair - Low level API for starting a signing session by generating a nonce.