pub fn validate_bip32_derivations(key: &PSBTKey, val: &PSBTValue) -> Result<(), PSBTError> {
        // 34 = 33-byte pubkey + 1-byte type
        validate_expected_key_type(key, 2)?;
        if validate_fixed_key_length(key, 66).is_err() {
            validate_fixed_key_length(key, 34)?;
        }
        try_val_as_key_derivation(val)?;
        Ok(())
    }
/// Validate PSBT_OUT_BIP32_DERIVATION kv pairs. Checks that the
/// pubkey is 33 bytes long, and that the value can be interpreted as a 4-byte fingerprint
/// with a list of 0-or-more 32-bit integers.
Validate PSBT_OUT_BIP32_DERIVATION kv pairs. Checks that the
pubkey is 33 bytes long, and that the value can be interpreted as a 4-byte fingerprint
with a list of 0-or-more 32-bit integers.
Validate PSBT_OUT_BIP32_DERIVATION kv pairs . Checks that the pubkey is 33 bytes long and that the value can be interpreted as a 4 - byte fingerprint with a list of 0 - or - more 32 - bit integers .
pub fn validate_bip32_derivations(key: &PSBTKey, val: &PSBTValue) -> Result<(), PSBTError> {
        // 34 = 33-byte pubkey + 1-byte type
        validate_expected_key_type(key, 2)?;
        if validate_fixed_key_length(key, 66).is_err() {
            validate_fixed_key_length(key, 34)?;
        }
        try_val_as_key_derivation(val)?;
        Ok(())
    }
pub fn validate_bip32_derivations ( key : & PSBTKey , val : & PSBTValue ) -> Result < ( ) , PSBTError > { // 34 = 33-byte pubkey + 1-byte type validate_expected_key_type ( key , 2 ) ? ; if validate_fixed_key_length ( key , 66 ) . is_err ( ) { validate_fixed_key_length ( key , 34 ) ? ; } try_val_as_key_derivation ( val ) ? ; Ok ( ( ) ) }
Validate PSBT_OUT_BIP32_DERIVATION kv pairs.
Validate PSBT_OUT_BIP32_DERIVATION kv pairs .
key
&PSBTKey
val
&PSBTValue
key
&PSBTKey
val
&PSBTValue