Module bech32::primitives::segwit
source · Expand description
Structs
- Field element does not represent a valid witness version.
Enums
- Witness program invalid because of incorrect length.
Constants
- The maximum enforced string length of a segwit address.
- 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.