Expand description
BIP-119 CHECKTEMPLATEVERIFY
Implementation of BIP-119 default template hash calculation, as defined at https://github.com/bitcoin/bips/blob/master/bip-0119.mediawiki
Re-exports§
pub use script_pubkey::PayToAnchor;
pub use script_pubkey::PayToPubkey;
pub use script_pubkey::PayToPubkeyHash;
pub use script_pubkey::PayToScriptHash;
pub use script_pubkey::PayToWitnessPubkeyHash;
pub use script_pubkey::PayToWitnessScriptHash;
pub use script_pubkey::PayToTaproot;
pub use script_pubkey::ScriptPubkey;
pub use script_pubkey::TxOut;
Modules§
- script_
pubkey - Helpers for handling scriptPubkeys without allocations
Structs§
- Default
Check Template Verify Hash - Default CHECKTEMPLATEVERIFY hash of a transaction
Constants§
- OP_
CHECKTEMPLATEVERIFY - The BIP redefines
OP_NOP4
to fail script evaluation if the top element on the stack is 32 bytes long and does not match the default template hash calculated for the current input index. If the top element is not 32 bytes long, this opcode does nothing. In both cases, the stack is not modified. Does nothing.
Traits§
- Hashable
Output - A marker trait defining a transaction output type usable with
hash_outputs
Functions§
- hash_
outputs - Build an intermediate hash from an iterator of outputs
- hash_
script_ sigs - Build an intermediate hash from an iterator of script sigs if any script sigs are non-empty
- hash_
sequences - Build an intermediate hash from an iterator of
Sequence
s