Expand description
§MuSig2
Helper functions for the MuSig2 signature scheme.
Structs§
Enums§
- Musig2
Mode - Possible Musig2 modes.
Constants§
- TAPROOT_
TWEAK_ 🔒TAG_ DIGEST - sha256(b“TapTweak“)
Traits§
Functions§
- aggregate_
nonces - aggregate_
partial_ signatures - Aggregates the partial signatures into a single aggregated signature and verifies the aggregated signature. If PARTIAL_SIG_VERIFICATION is set to true, each partial signature will also be verified.
- create_
key_ 🔒agg_ cache - from_
secp_ kp - from_
secp_ pk - from_
secp_ sig - from_
secp_ xonly - nonce_
pair - Generates a pair of nonces, one secret and one public. Be careful, DO NOT REUSE the same pair of nonces for multiple transactions. It will cause you to leak your secret key. For more information. See: https://medium.com/blockstream/musig-dn-schnorr-multisignatures-with-verifiably-deterministic-nonces-27424b5df9d6#e3b6.
- partial_
sign - to_
secp_ kp - to_
secp_ msg - to_
secp_ pk - to_
secp_ sk