diff --git a/CHANGELOG.md b/CHANGELOG.md index e806d20..9cddeab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ Entries are listed in reverse chronological order. +# 0.6.0 + +* Use 0.4 series of Arkworks dependencies. + # 0.5.0 * Add `Ord`, `PartialOrd` to `VerificationKey`, `VerificationKeyBytes` so they can be used with BTrees. diff --git a/Cargo.toml b/Cargo.toml index 797f01a..281883b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "decaf377-rdsa" edition = "2018" -version = "0.5.0" +version = "0.6.0" authors = ["Penumbra Labs "] readme = "README.md" license = "MIT OR Apache-2.0" @@ -11,13 +11,13 @@ repository = "https://github.com/penumbra-zone/decaf377-rdsa" [dependencies] blake2b_simd = "0.5" byteorder = "1.3" -decaf377 = { version= "0.3", default-features=false } +decaf377 = { version= "0.4", default-features=false } digest = "0.9" rand_core = "0.6" serde = { version = "1", optional = true, features = ["derive"] } thiserror = "1.0" -ark-serialize = "0.3" -ark-ff = { version = "0.3", default-features=false } +ark-serialize = "0.4" +ark-ff = { version = "0.4", default-features=false } hex = "0.4" [dev-dependencies] diff --git a/src/signing_key.rs b/src/signing_key.rs index 62e8b6e..cdb84fb 100644 --- a/src/signing_key.rs +++ b/src/signing_key.rs @@ -68,7 +68,7 @@ impl TryFrom<[u8; 32]> for SigningKey { fn try_from(bytes: [u8; 32]) -> Result { use ark_serialize::CanonicalDeserialize; - let sk = Fr::deserialize(&bytes[..]).map_err(|_| Error::MalformedSigningKey)?; + let sk = Fr::deserialize_compressed(&bytes[..]).map_err(|_| Error::MalformedSigningKey)?; Ok(Self::new_from_field(sk)) } }