CreateMuSig2Nonce

Generate a MuSig2 public nonce for a signing session and store the matching secret nonce.

Synopsis

Declared in <musig.h>

std::vector<uint8_t>
CreateMuSig2Nonce(
    MuSig2SecNonce& secnonce,
    uint256 const& sighash,
    CKey const& our_seckey,
    CPubKey const& aggregate_pubkey,
    std::vector<CPubKey> const& pubkeys);

Return Value

The serialized public nonce to share with the other participants.

Parameters

NameDescription
secnonceOutput holder that receives the secret nonce for this session.
sighashThe signature hash that will be signed in this session.
our_seckeyThis participant's secret key.
aggregate_pubkeyThe aggregate public key of all participants.
pubkeysThe participant public keys, in aggregation order.