Skip to content

Commit

Permalink
fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cifko committed Nov 22, 2022
1 parent c215dbb commit a1a5d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ristretto/ristretto_keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ impl borsh::BorshSerialize for RistrettoPublicKey {
#[cfg(feature = "borsh")]
impl borsh::BorshDeserialize for RistrettoPublicKey {
fn deserialize(buf: &mut &[u8]) -> io::Result<Self> {
let bytes: [u8; 32] = borsh::BorshDeserialize::deserialize(buf)?;
Self::from_bytes(&bytes).map_err(|e| io::Error::new(io::ErrorKind::InvalidInput, e.to_string()))
let bytes: Vec<u8> = borsh::BorshDeserialize::deserialize(buf)?;
Self::from_bytes(&bytes.as_slice()).map_err(|e| io::Error::new(io::ErrorKind::InvalidInput, e.to_string()))
}
}

Expand Down

0 comments on commit a1a5d1f

Please sign in to comment.