pub fn validate_xpub(key: &PSBTKey, val: &PSBTValue) -> Result<(), PSBTError> {
        validate_expected_key_type(key, 1)?;
        validate_fixed_key_length(key, 79)?;
        validate_xpub_depth(key, val)
    }
/// Validate PSBT_GLOBAL_XPUB kv pairs. Checks that the xpub is 78 bytes long, and that the value
/// can be interpreted as a 4-byte fingerprint with a list of 32-bit integers.
Validate PSBT_GLOBAL_XPUB kv pairs. Checks that the xpub is 78 bytes long, and that the value
can be interpreted as a 4-byte fingerprint with a list of 32-bit integers.
Validate PSBT_GLOBAL_XPUB kv pairs . Checks that the xpub is 78 bytes long and that the value can be interpreted as a 4 - byte fingerprint with a list of 32 - bit integers .
pub fn validate_xpub(key: &PSBTKey, val: &PSBTValue) -> Result<(), PSBTError> {
        validate_expected_key_type(key, 1)?;
        validate_fixed_key_length(key, 79)?;
        validate_xpub_depth(key, val)
    }
pub fn validate_xpub ( key : & PSBTKey , val : & PSBTValue ) -> Result < ( ) , PSBTError > { validate_expected_key_type ( key , 1 ) ? ; validate_fixed_key_length ( key , 79 ) ? ; validate_xpub_depth ( key , val ) }
Validate PSBT_GLOBAL_XPUB kv pairs.
Validate PSBT_GLOBAL_XPUB kv pairs .
key
&PSBTKey
val
&PSBTValue
key
&PSBTKey
val
&PSBTValue