Bitcoin Core 30.99.0
P2P Digital Currency
Public Member Functions | List of all members
BaseSignatureCreator Class Referenceabstract

Interface for signature creators. More...

#include <sign.h>

Inheritance diagram for BaseSignatureCreator:
[legend]

Public Member Functions

virtual ~BaseSignatureCreator ()=default
 
virtual const BaseSignatureCheckerChecker () const =0
 
virtual bool CreateSig (const SigningProvider &provider, std::vector< unsigned char > &vchSig, const CKeyID &keyid, const CScript &scriptCode, SigVersion sigversion) const =0
 Create a singular (non-script) signature. More...
 
virtual bool CreateSchnorrSig (const SigningProvider &provider, std::vector< unsigned char > &sig, const XOnlyPubKey &pubkey, const uint256 *leaf_hash, const uint256 *merkle_root, SigVersion sigversion) const =0
 
virtual std::vector< uint8_t > CreateMuSig2Nonce (const SigningProvider &provider, const CPubKey &aggregate_pubkey, const CPubKey &script_pubkey, const CPubKey &part_pubkey, const uint256 *leaf_hash, const uint256 *merkle_root, SigVersion sigversion, const SignatureData &sigdata) const =0
 
virtual bool CreateMuSig2PartialSig (const SigningProvider &provider, uint256 &partial_sig, const CPubKey &aggregate_pubkey, const CPubKey &script_pubkey, const CPubKey &part_pubkey, const uint256 *leaf_hash, const std::vector< std::pair< uint256, bool > > &tweaks, SigVersion sigversion, const SignatureData &sigdata) const =0
 
virtual bool CreateMuSig2AggregateSig (const std::vector< CPubKey > &participants, std::vector< uint8_t > &sig, const CPubKey &aggregate_pubkey, const CPubKey &script_pubkey, const uint256 *leaf_hash, const std::vector< std::pair< uint256, bool > > &tweaks, SigVersion sigversion, const SignatureData &sigdata) const =0
 

Detailed Description

Interface for signature creators.

Definition at line 29 of file sign.h.

Constructor & Destructor Documentation

◆ ~BaseSignatureCreator()

virtual BaseSignatureCreator::~BaseSignatureCreator ( )
virtualdefault

Member Function Documentation

◆ Checker()

virtual const BaseSignatureChecker & BaseSignatureCreator::Checker ( ) const
pure virtual

Implemented in MutableTransactionSignatureCreator.

Here is the caller graph for this function:

◆ CreateMuSig2AggregateSig()

virtual bool BaseSignatureCreator::CreateMuSig2AggregateSig ( const std::vector< CPubKey > &  participants,
std::vector< uint8_t > &  sig,
const CPubKey aggregate_pubkey,
const CPubKey script_pubkey,
const uint256 leaf_hash,
const std::vector< std::pair< uint256, bool > > &  tweaks,
SigVersion  sigversion,
const SignatureData sigdata 
) const
pure virtual

Implemented in MutableTransactionSignatureCreator.

Here is the caller graph for this function:

◆ CreateMuSig2Nonce()

virtual std::vector< uint8_t > BaseSignatureCreator::CreateMuSig2Nonce ( const SigningProvider provider,
const CPubKey aggregate_pubkey,
const CPubKey script_pubkey,
const CPubKey part_pubkey,
const uint256 leaf_hash,
const uint256 merkle_root,
SigVersion  sigversion,
const SignatureData sigdata 
) const
pure virtual

Implemented in MutableTransactionSignatureCreator.

Here is the caller graph for this function:

◆ CreateMuSig2PartialSig()

virtual bool BaseSignatureCreator::CreateMuSig2PartialSig ( const SigningProvider provider,
uint256 partial_sig,
const CPubKey aggregate_pubkey,
const CPubKey script_pubkey,
const CPubKey part_pubkey,
const uint256 leaf_hash,
const std::vector< std::pair< uint256, bool > > &  tweaks,
SigVersion  sigversion,
const SignatureData sigdata 
) const
pure virtual

Implemented in MutableTransactionSignatureCreator.

Here is the caller graph for this function:

◆ CreateSchnorrSig()

virtual bool BaseSignatureCreator::CreateSchnorrSig ( const SigningProvider provider,
std::vector< unsigned char > &  sig,
const XOnlyPubKey pubkey,
const uint256 leaf_hash,
const uint256 merkle_root,
SigVersion  sigversion 
) const
pure virtual

Implemented in MutableTransactionSignatureCreator.

Here is the caller graph for this function:

◆ CreateSig()

virtual bool BaseSignatureCreator::CreateSig ( const SigningProvider provider,
std::vector< unsigned char > &  vchSig,
const CKeyID keyid,
const CScript scriptCode,
SigVersion  sigversion 
) const
pure virtual

Create a singular (non-script) signature.

Implemented in MutableTransactionSignatureCreator.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: