Module bdk_chain::bitcoin::blockdata::script::witness_version
Expand description
The segregated witness version byte as defined by BIP141.
A scriptPubKey (or redeemScript as defined in BIP16/P2SH) that consists of a 1-byte push opcode (for 0 to 16) followed by a data push between 2 and 40 bytes gets a new special meaning. The value of the first push is called the “version byte”. The following byte vector pushed is called the “witness program”.
Structs§
- Error attempting to create a
WitnessVersion
from an integer.
Enums§
- Error parsing
WitnessVersion
from a string. - Error attempting to create a
WitnessVersion
from anInstruction
- Version of the segregated witness program.