pub fn validate_sighash_type(key: &PSBTKey, val: &PSBTValue) -> Result<(), PSBTError> {
        validate_expected_key_type(key, 3)?;
        validate_single_byte_key_type(key)?;
        validate_fixed_val_length(val, 4)?;
        try_val_as_sighash(val).map(|_| ())
    }
/// Validate a PSBT_IN_SIGHASH_TYPE key-value pair in an input map
Validate a PSBT_IN_SIGHASH_TYPE key-value pair in an input map
Validate a PSBT_IN_SIGHASH_TYPE key - value pair in an input map
pub fn validate_sighash_type(key: &PSBTKey, val: &PSBTValue) -> Result<(), PSBTError> {
        validate_expected_key_type(key, 3)?;
        validate_single_byte_key_type(key)?;
        validate_fixed_val_length(val, 4)?;
        try_val_as_sighash(val).map(|_| ())
    }
pub fn validate_sighash_type ( key : & PSBTKey , val : & PSBTValue ) -> Result < ( ) , PSBTError > { validate_expected_key_type ( key , 3 ) ? ; validate_single_byte_key_type ( key ) ? ; validate_fixed_val_length ( val , 4 ) ? ; try_val_as_sighash ( val ) . map ( | _ | ( ) ) }
Validate a PSBT_IN_SIGHASH_TYPE key-value pair in an input map
Validate a PSBT_IN_SIGHASH_TYPE key - value pair in an input map
key
&PSBTKey
val
&PSBTValue
key
&PSBTKey
val
&PSBTValue