Create a Schnorr signature for the Taproot input.
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 override;
True if the signature was created.
| 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. |