Module bech32::primitives::segwit
source · Expand description
Segregated Witness functionality - useful for enforcing parts of [BIP-173
] and [BIP-350
].
Structs
- Field element does not represent a valid witness version.
Enums
- Witness program invalid because of incorrect length.
Constants
- The field element representing segwit version 0.
- The field element representing segwit version 1 (taproot).
Functions
- Returns true if
length
represents a valid witness program length forwitness_version
. - Returns true if given field element represents a valid segwit version.
- Validates the segwit witness program
length
rules for witnessversion
. - Checks that the given field element represents a valid segwit witness version.