diff --git a/nimue/Cargo.toml b/nimue/Cargo.toml index d479319..5d30ac9 100644 --- a/nimue/Cargo.toml +++ b/nimue/Cargo.toml @@ -10,7 +10,7 @@ license = "BSD-3-Clause" zeroize = { version = "1.6.0", features = ["zeroize_derive"] } rand = { version = "0.8", features = ["getrandom"] } digest = "^0.10.7" -serde = "^1.0" +serde = { version = "^1.0", features = ["derive"] } # used as default hasher for the prover keccak = { version = "0.1.4"} log = "0.4.20" diff --git a/nimue/src/hash/legacy.rs b/nimue/src/hash/legacy.rs index 9a47c24..9396f52 100644 --- a/nimue/src/hash/legacy.rs +++ b/nimue/src/hash/legacy.rs @@ -16,15 +16,15 @@ //! `squeeze_unchecked` will use the squeeze oracle to output `output.len()` bytes, //! and finally `squeeze_end` will set the state `cv` to the current squeeze digest and length. //! -use digest::{core_api::BlockSizeUser, typenum::Unsigned, Digest, FixedOutputReset, Reset}; use digest::crypto_common::generic_array::GenericArray; +use digest::{core_api::BlockSizeUser, typenum::Unsigned, Digest, FixedOutputReset, Reset}; use zeroize::Zeroize; use super::DuplexHash; /// A Bridge to our sponge interface for legacy `Digest` implementations. #[derive(Clone)] -pub struct DigestBridge { +pub struct DigestBridge { /// The underlying hasher. hasher: D, /// Cached digest