Module segwit
Expand description
Structs§
- Invalid
Witness Version Error - Field element does not represent a valid witness version.
Enums§
- Witness
Length Error - Witness program invalid because of incorrect length.
Constants§
- MAX_
STRING_ LENGTH - The maximum enforced string length of a segwit address.
- VERSION_
0 - The field element representing segwit version 0.
- VERSION_
1 - The field element representing segwit version 1 (taproot).
Functions§
- is_
valid_ witness_ program_ length - Returns true if
length
represents a valid witness program length forwitness_version
. - is_
valid_ witness_ version - Returns true if given field element represents a valid segwit version.
- validate_
witness_ program_ length - Validates the segwit witness program
length
rules for witnessversion
. - validate_
witness_ version - Checks that the given field element represents a valid segwit witness version.