BaseSignatureCreator::CreateMuSig2Nonce

Create a MuSig2 public nonce for the given participant.

Synopsis

Declared in <script/sign.h>

virtual
std::vector<uint8_t>
CreateMuSig2Nonce(
    SigningProvider const& provider,
    CPubKey const& aggregate_pubkey,
    CPubKey const& script_pubkey,
    CPubKey const& part_pubkey,
    uint256 const* leaf_hash,
    uint256 const* merkle_root,
    SigVersion sigversion,
    SignatureData const& sigdata) const = 0;

Return Value

The serialized public nonce, empty on failure.

Parameters

NameDescription
providerThe source of keys and MuSig2 session state.
aggregate_pubkeyThe aggregate public key of the MuSig2 group.
script_pubkeyThe output key the aggregate key is tweaked to.
part_pubkeyThe participant public key generating the nonce.
leaf_hashThe tapleaf hash for a script path spend, or null.
merkle_rootThe Taproot merkle root, or null for a key path spend.
sigversionThe signature serialization version to use.
sigdataSignature data providing context for the input.