Generate a MuSig2 public nonce for a signing session and store the matching secret nonce.
Declared in <musig.h>
std::vector<uint8_t>
CreateMuSig2Nonce(
MuSig2SecNonce& secnonce,
uint256 const& sighash,
CKey const& our_seckey,
CPubKey const& aggregate_pubkey,
std::vector<CPubKey> const& pubkeys);
The serialized public nonce to share with the other participants.
| Name | Description |
|---|---|
| secnonce | Output holder that receives the secret nonce for this session. |
| sighash | The signature hash that will be signed in this session. |
| our_seckey | This participant's secret key. |
| aggregate_pubkey | The aggregate public key of all participants. |
| pubkeys | The participant public keys, in aggregation order. |