BaseSignatureCreator::CreateMuSig2PartialSig

Create this participant's MuSig2 partial signature.

Synopsis

Declared in <script/sign.h>

virtual
bool
CreateMuSig2PartialSig(
    SigningProvider const& provider,
    uint256& partial_sig,
    CPubKey const& aggregate_pubkey,
    CPubKey const& script_pubkey,
    CPubKey const& part_pubkey,
    uint256 const* leaf_hash,
    std::vector<std::pair<uint256, bool>> const& tweaks,
    SigVersion sigversion,
    SignatureData const& sigdata) const = 0;

Return Value

True if the partial signature was created.

Parameters

NameDescription
providerThe source of keys and MuSig2 session state.
partial_sigFilled with the produced partial signature.
aggregate_pubkeyThe aggregate public key of the MuSig2 group.
script_pubkeyThe output key the aggregate key is tweaked to.
part_pubkeyThe participant public key producing the signature.
leaf_hashThe tapleaf hash for a script path spend, or null.
tweaksThe tweaks applied to the aggregate key, with parity flags.
sigversionThe signature serialization version to use.
sigdataSignature data providing context for the input.