pub fn validate_fixed_val_length(val: &PSBTValue, length: usize) -> Result<(), PSBTError> {
    if val.len() != length {
        Err(PSBTError::WrongValueLength {
            expected: length,
            got: val.len(),
        })
    } else {
        Ok(())
    }
}
/// Validate that a key is a fixed length
Validate that a key is a fixed length
Validate that a key is a fixed length
pub fn validate_fixed_val_length(val: &PSBTValue, length: usize) -> Result<(), PSBTError> {
    if val.len() != length {
        Err(PSBTError::WrongValueLength {
            expected: length,
            got: val.len(),
        })
    } else {
        Ok(())
    }
}
pub fn validate_fixed_val_length ( val : & PSBTValue , length : usize ) -> Result < ( ) , PSBTError > { if val . len ( ) != length { Err ( PSBTError :: WrongValueLength { expected : length , got : val . len ( ) , } ) } else { Ok ( ( ) ) } }
Validate that a key is a fixed length
Validate that a key is a fixed length
val
&PSBTValue
length
usize
val
&PSBTValue
length
usize