diff --git a/zcash_primitives/src/transparent.rs b/zcash_primitives/src/transparent.rs index 7771303f8..686b598c1 100644 --- a/zcash_primitives/src/transparent.rs +++ b/zcash_primitives/src/transparent.rs @@ -31,10 +31,10 @@ pub fn pubkey_to_address(pubkey: &secp256k1::key::PublicKey) -> TransparentAddre #[derive(Clone, Debug)] pub struct ExternalPubKey(pub ExtendedPubKey); -impl std::convert::TryFrom<&[u8]> for ExternalPubKey { +impl std::convert::TryFrom<&[u8; 65]> for ExternalPubKey { type Error = hdwallet::error::Error; - fn try_from(data: &[u8]) -> Result { + fn try_from(data: &[u8; 65]) -> Result { let ext_pub_key = ExtendedPubKey::deserialize(data)?; Ok(Self(ext_pub_key)) }