DeserializeMuSig2ParticipantDataIdentifier

Deserialize the MuSig2 participant identifiers from a PSBT MuSig2 field.

Synopsis

Declared in <psbt.h>

template<typename Stream>
void
DeserializeMuSig2ParticipantDataIdentifier(
    Stream& skey,
    CPubKey& agg_pub,
    CPubKey& part_pub,
    uint256& leaf_hash);

Description

Both the pubnonce and partial-signature fields share the same layout after the type byte: aggregate pubkey, participant pubkey, and optional leaf hash.

Parameters

NameDescription
skeyThe key reader positioned after the type byte.
agg_pubReceives the aggregate public key.
part_pubReceives the participant public key.
leaf_hashReceives the leaf script hash, or null when absent.