Create a MuSig2 public nonce for the given participant.
Synopsis
Declared in <script/sign.h>
virtual
std::vector<uint8_t>
CreateMuSig2Nonce(
SigningProvider const& provider,
CPubKey const& aggregate_pubkey,
CPubKey const& script_pubkey,
CPubKey const& part_pubkey,
uint256 const* leaf_hash,
uint256 const* merkle_root,
SigVersion sigversion,
SignatureData const& sigdata) const override;
Return Value
The serialized public nonce, empty on failure.
Parameters
Name |
Description |
provider |
The source of keys and MuSig2 session state. |
aggregate_pubkey |
The aggregate public key of the MuSig2 group. |
script_pubkey |
The output key the aggregate key is tweaked to. |
part_pubkey |
The participant public key generating the nonce. |
leaf_hash |
The tapleaf hash for a script path spend, or null. |
merkle_root |
The Taproot merkle root, or null for a key path spend. |
sigversion |
The signature serialization version to use. |
sigdata |
Signature data providing context for the input. |
Created with MrDocs