s/weird/invalid/

This commit is contained in:
Deirdre Connolly 2020-03-27 05:32:53 -04:00 committed by Deirdre Connolly
parent 2e063998fb
commit a6d511eb71
1 changed files with 1 additions and 1 deletions

View File

@ -21,6 +21,6 @@ impl ZcashDeserialize for PublicKey {
let mut bytes = [0; 33]; let mut bytes = [0; 33];
reader.read_exact(&mut bytes[..])?; reader.read_exact(&mut bytes[..])?;
Self::from_slice(&bytes[..]) Self::from_slice(&bytes[..])
.map_err(|_| SerializationError::Parse("weird secp256k1 compressed public key")) .map_err(|_| SerializationError::Parse("invalid secp256k1 compressed public key"))
} }
} }