Crate bip119

Crate bip119 

Source
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§

DefaultCheckTemplateVerifyHash
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§

HashableOutput
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 Sequences