MuSig2SessionID

Computes an arbitrary unique session ID to identify ongoing signing sessions. It is the SHA256 of the signing (aggregate) pubkey, the participant pubkey, the sighash, and the pubnonce

Synopsis

Declared in <musig.h>

uint256
MuSig2SessionID(
    CPubKey const& script_pubkey,
    CPubKey const& part_pubkey,
    uint256 const& sighash,
    std::vector<uint8_t> const& pubnonce);

Return Value

A unique session identifier derived from the inputs.

Parameters

NameDescription
script_pubkeyThe signing (aggregate) public key for the session.
part_pubkeyThe participant public key.
sighashThe signature hash being signed.
pubnonceThe serialized public nonce.