mirror of
https://github.com/arnaucube/Nova.git
synced 2026-02-01 08:46:39 +01:00
update the dependencies & code clean (#196)
This commit is contained in:
@@ -769,8 +769,8 @@ fn compute_digest<G: Group, T: Serialize>(o: &T) -> G::Scalar {
|
||||
let bytes = bincode::serialize(o).unwrap();
|
||||
// convert pp_bytes into a short digest
|
||||
let mut hasher = Sha3_256::new();
|
||||
hasher.input(&bytes);
|
||||
let digest = hasher.result();
|
||||
hasher.update(&bytes);
|
||||
let digest = hasher.finalize();
|
||||
|
||||
// truncate the digest to NUM_HASH_BITS bits
|
||||
let bv = (0..NUM_HASH_BITS).map(|i| {
|
||||
|
||||
Reference in New Issue
Block a user