[#SigningProvider-GetMuSig2SecNonce]
= xref:SigningProvider.adoc[SigningProvider]::GetMuSig2SecNonce
:relfileprefix: ../
:mrdocs:

Retrieve the MuSig2 secret nonce for a signing session&period;

== Synopsis

Declared in `&lt;script&sol;signingprovider&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
std::optional&lt;std::reference&lowbar;wrapper&lt;MuSig2SecNonce&gt;&gt;
GetMuSig2SecNonce(xref:uint256.adoc[uint256] const& session&lowbar;id) const;
----

== Return Value

A reference to the nonce, or std&colon;&colon;nullopt if none is stored&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *session&lowbar;id*
| The session id to retrieve the nonce for&period;
|===


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