Module bdk_chain::bitcoin::blockdata::script::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§

Enums§

  • Witness program error.

Constants§

  • The maximum byte size of a segregated witness program.
  • The minimum byte size of a segregated witness program.