[#DeserializeMuSig2ParticipantDataIdentifier]
= DeserializeMuSig2ParticipantDataIdentifier
:mrdocs:

Deserialize the MuSig2 participant identifiers from a PSBT MuSig2 field&period;

== Synopsis

Declared in `&lt;psbt&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Stream&gt;
void
DeserializeMuSig2ParticipantDataIdentifier(
    Stream& skey,
    xref:CPubKey.adoc[CPubKey]& agg&lowbar;pub,
    xref:CPubKey.adoc[CPubKey]& part&lowbar;pub,
    xref:uint256.adoc[uint256]& leaf&lowbar;hash);
----

== Description

Both the pubnonce and partial&hyphen;signature fields share the same layout after the type byte&colon; aggregate pubkey, participant pubkey, and optional leaf hash&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *skey*
| The key reader positioned after the type byte&period;
| *agg&lowbar;pub*
| Receives the aggregate public key&period;
| *part&lowbar;pub*
| Receives the participant public key&period;
| *leaf&lowbar;hash*
| Receives the leaf script hash, or null when absent&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
