|
| enum | {
SIGHASH_ALL = 1
, SIGHASH_NONE = 2
, SIGHASH_SINGLE = 3
, SIGHASH_ANYONECANPAY = 0x80
,
SIGHASH_DEFAULT = 0
, SIGHASH_OUTPUT_MASK = 3
, SIGHASH_INPUT_MASK = 0x80
} |
| | Signature hash types/flags. More...
|
| |
| enum | : uint32_t {
SCRIPT_VERIFY_NONE = 0
, SCRIPT_VERIFY_P2SH = (1U << 0)
, SCRIPT_VERIFY_STRICTENC = (1U << 1)
, SCRIPT_VERIFY_DERSIG = (1U << 2)
,
SCRIPT_VERIFY_LOW_S = (1U << 3)
, SCRIPT_VERIFY_NULLDUMMY = (1U << 4)
, SCRIPT_VERIFY_SIGPUSHONLY = (1U << 5)
, SCRIPT_VERIFY_MINIMALDATA = (1U << 6)
,
SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS = (1U << 7)
, SCRIPT_VERIFY_CLEANSTACK = (1U << 8)
, SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY = (1U << 9)
, SCRIPT_VERIFY_CHECKSEQUENCEVERIFY = (1U << 10)
,
SCRIPT_VERIFY_WITNESS = (1U << 11)
, SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM = (1U << 12)
, SCRIPT_VERIFY_MINIMALIF = (1U << 13)
, SCRIPT_VERIFY_NULLFAIL = (1U << 14)
,
SCRIPT_VERIFY_WITNESS_PUBKEYTYPE = (1U << 15)
, SCRIPT_VERIFY_CONST_SCRIPTCODE = (1U << 16)
, SCRIPT_VERIFY_TAPROOT = (1U << 17)
, SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_TAPROOT_VERSION = (1U << 18)
,
SCRIPT_VERIFY_DISCOURAGE_OP_SUCCESS = (1U << 19)
, SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_PUBKEYTYPE = (1U << 20)
, SCRIPT_VERIFY_END_MARKER
} |
| | Script verification flags. More...
|
| |
| enum class | SigVersion { BASE = 0
, WITNESS_V0 = 1
, TAPROOT = 2
, TAPSCRIPT = 3
} |
| |
| enum class | MissingDataBehavior { ASSERT_FAIL
, FAIL
} |
| | Enum to specify what *TransactionSignatureChecker's behavior should be when dealing with missing transaction data. More...
|
| |
|
| bool | CheckSignatureEncoding (const std::vector< unsigned char > &vchSig, unsigned int flags, ScriptError *serror) |
| |
| template<class T > |
| uint256 | SignatureHash (const CScript &scriptCode, const T &txTo, unsigned int nIn, int nHashType, const CAmount &amount, SigVersion sigversion, const PrecomputedTransactionData *cache=nullptr) |
| |
| template<typename T > |
| bool | SignatureHashSchnorr (uint256 &hash_out, const ScriptExecutionData &execdata, const T &tx_to, uint32_t in_pos, uint8_t hash_type, SigVersion sigversion, const PrecomputedTransactionData &cache, MissingDataBehavior mdb) |
| |
| uint256 | ComputeTapleafHash (uint8_t leaf_version, const CScript &script) |
| | Compute the BIP341 tapleaf hash from leaf version & script. More...
|
| |
| uint256 | ComputeTaprootMerkleRoot (Span< const unsigned char > control, const uint256 &tapleaf_hash) |
| | Compute the BIP341 taproot script tree Merkle root from control block and leaf hash. More...
|
| |
| bool | EvalScript (std::vector< std::vector< unsigned char > > &stack, const CScript &script, unsigned int flags, const BaseSignatureChecker &checker, SigVersion sigversion, ScriptExecutionData &execdata, ScriptError *error=nullptr) |
| |
| bool | EvalScript (std::vector< std::vector< unsigned char > > &stack, const CScript &script, unsigned int flags, const BaseSignatureChecker &checker, SigVersion sigversion, ScriptError *error=nullptr) |
| |
| bool | VerifyScript (const CScript &scriptSig, const CScript &scriptPubKey, const CScriptWitness *witness, unsigned int flags, const BaseSignatureChecker &checker, ScriptError *serror=nullptr) |
| |
| size_t | CountWitnessSigOps (const CScript &scriptSig, const CScript &scriptPubKey, const CScriptWitness *witness, unsigned int flags) |
| |
| bool | CheckMinimalPush (const std::vector< unsigned char > &data, opcodetype opcode) |
| |
| int | FindAndDelete (CScript &script, const CScript &b) |
| |
| uint256 ComputeTaprootMerkleRoot |
( |
Span< const unsigned char > |
control, |
|
|
const uint256 & |
tapleaf_hash |
|
) |
| |
Compute the BIP341 taproot script tree Merkle root from control block and leaf hash.
Requires control block to have valid length (33 + k*32, with k in {0,1,..,128}).
Definition at line 1855 of file interpreter.cpp.