Ethereum hashing

This commit is contained in:
Michael Sproul
2023-01-16 17:27:10 +11:00
parent 69bdd1d61f
commit 1ee4514b7d
31 changed files with 27 additions and 305 deletions

View File

@@ -12,7 +12,7 @@ harness = false
criterion = "0.3.3"
[dependencies]
eth2_hashing = "0.3.0"
ethereum_hashing = "1.0.0-beta.2"
ethereum-types = "0.14.1"
[features]

View File

@@ -1,5 +1,5 @@
use crate::Hash256;
use eth2_hashing::{Context, Sha256Context};
use ethereum_hashing::{Context, Sha256Context};
use std::cmp::max;
/// Return `p(index)` in a pseudorandom permutation `p` of `0...list_size-1` with ``seed`` as entropy.

View File

@@ -1,5 +1,5 @@
use crate::Hash256;
use eth2_hashing::hash_fixed;
use ethereum_hashing::hash_fixed;
use std::mem;
const SEED_SIZE: usize = 32;