Create a Schnorr signature for a Taproot spend.
Synopsis
Declared in <script/sign.h>
virtual
bool
CreateSchnorrSig(
SigningProvider const& provider,
std::vector<unsigned char>& sig,
XOnlyPubKey const& pubkey,
uint256 const* leaf_hash,
uint256 const* merkle_root,
SigVersion sigversion) const = 0;
Return Value
True if the signature was created.
Parameters
Name |
Description |
provider |
The source of keys used to sign. |
sig |
Filled with the produced Schnorr signature. |
pubkey |
The x‐only public key to sign with. |
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. |
Created with MrDocs