Module witness_program

Expand description

The segregated witness program 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§

WitnessProgram
The segregated witness program.

Enums§

Error
Witness program error.

Constants§

MAX_SIZE
The maximum byte size of a segregated witness program.
MIN_SIZE
The minimum byte size of a segregated witness program.