[#MuSig2SessionID] = MuSig2SessionID :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:uint256.adoc[uint256] MuSig2SessionID( xref:CPubKey.adoc[CPubKey] const& script_pubkey, xref:CPubKey.adoc[CPubKey] const& part_pubkey, xref:uint256.adoc[uint256] const& sighash, std::vector<uint8_t> const& pubnonce); ---- == Return Value A unique session identifier derived from the inputs. == Parameters [cols="1,4"] |=== | Name| Description | *script_pubkey* | The signing (aggregate) public key for the session. | *part_pubkey* | The participant public key. | *sighash* | The signature hash being signed. | *pubnonce* | The serialized public nonce. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#