[#MuSig2SessionID]
= MuSig2SessionID
:mrdocs:

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:uint256.adoc[uint256]
MuSig2SessionID(
    xref:CPubKey.adoc[CPubKey] const& script&lowbar;pubkey,
    xref:CPubKey.adoc[CPubKey] const& part&lowbar;pubkey,
    xref:uint256.adoc[uint256] const& sighash,
    std::vector&lt;uint8&lowbar;t&gt; const& pubnonce);
----

== Return Value

A unique session identifier derived from the inputs&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *script&lowbar;pubkey*
| The signing (aggregate) public key for the session&period;
| *part&lowbar;pubkey*
| The participant public key&period;
| *sighash*
| The signature hash being signed&period;
| *pubnonce*
| The serialized public nonce&period;
|===


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