[#MutableTransactionSignatureCreator-CreateSchnorrSig] = xref:MutableTransactionSignatureCreator.adoc[MutableTransactionSignatureCreator]::CreateSchnorrSig :relfileprefix: ../ :mrdocs: Create a Schnorr signature for the Taproot input. == Synopsis Declared in `<script/sign.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool CreateSchnorrSig( xref:SigningProvider.adoc[SigningProvider] const& provider, std::vector<unsigned char>& sig, xref:XOnlyPubKey.adoc[XOnlyPubKey] const& pubkey, xref:uint256.adoc[uint256] const* leaf_hash, xref:uint256.adoc[uint256] const* merkle_root, xref:SigVersion.adoc[SigVersion] sigversion) const override; ---- == Return Value True if the signature was created. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#