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

@@ -7,7 +7,7 @@ edition = "2021"
[dependencies]
ethereum-types = "0.14.1"
ssz_types = "1.0.0-beta.0"
eth2_hashing = "0.3.0"
ethereum_hashing = "1.0.0-beta.2"
ethereum_ssz_derive = "1.0.0-beta.2"
ethereum_ssz = "1.0.0-beta.2"
tree_hash = "1.0.0-beta.0"

View File

@@ -1,7 +1,7 @@
use crate::cache_arena;
use crate::SmallVec8;
use crate::{Error, Hash256};
use eth2_hashing::{hash32_concat, ZERO_HASHES};
use ethereum_hashing::{hash32_concat, ZERO_HASHES};
use smallvec::smallvec;
use ssz_derive::{Decode, Encode};
use tree_hash::BYTES_PER_CHUNK;

View File

@@ -1,6 +1,6 @@
use crate::impls::hash256_iter;
use crate::{CacheArena, CachedTreeHash, Error, Hash256, TreeHashCache};
use eth2_hashing::ZERO_HASHES;
use ethereum_hashing::ZERO_HASHES;
use quickcheck_macros::quickcheck;
use ssz_types::{
typenum::{Unsigned, U16, U255, U256, U257},