bdk_chain::bitcoin::bech32::primitives::segwit

Function validate_witness_version

pub fn validate_witness_version(
    witness_version: Fe32,
) -> Result<(), InvalidWitnessVersionError>
Expand description

Checks that the given field element represents a valid segwit witness version.