MutableTransactionSignatureCreator::CreateSchnorrSig

Create a Schnorr signature for the Taproot input.

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 override;

Return Value

True if the signature was created.

Parameters

NameDescription
providerThe source of keys used to sign.
sigFilled with the produced Schnorr signature.
pubkeyThe x-only public key to sign with.
leaf_hashThe tapleaf hash for a script path spend, or null.
merkle_rootThe Taproot merkle root, or null for a key path spend.
sigversionThe signature serialization version to use.