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

@@ -30,7 +30,7 @@ serde_derive = "1.0.116"
slog = { version = "2.5.2", features = ["max_level_trace"] }
sloggers = { version = "2.1.1", features = ["json"] }
slot_clock = { path = "../../common/slot_clock" }
eth2_hashing = "0.3.0"
ethereum_hashing = "1.0.0-beta.2"
ethereum_ssz = "1.0.0-beta.2"
ssz_types = "1.0.0-beta.0"
ethereum_ssz_derive = "1.0.0-beta.2"

View File

@@ -992,7 +992,7 @@ fn descriptive_db_error(item: &str, error: &StoreError) -> String {
mod test {
use super::*;
use crate::validator_monitor::DEFAULT_INDIVIDUAL_TRACKING_THRESHOLD;
use eth2_hashing::hash;
use ethereum_hashing::hash;
use genesis::{
generate_deterministic_keypairs, interop_genesis_state, DEFAULT_ETH1_BLOCK_HASH,
};

View File

@@ -1,7 +1,7 @@
use crate::metrics;
use eth1::{Config as Eth1Config, Eth1Block, Service as HttpService};
use eth2::lighthouse::Eth1SyncStatusData;
use eth2_hashing::hash;
use ethereum_hashing::hash;
use int_to_bytes::int_to_bytes32;
use slog::{debug, error, trace, Logger};
use ssz::{Decode, Encode};

View File

@@ -17,7 +17,7 @@ rayon = "1.4.1"
state_processing = { path = "../../consensus/state_processing" }
merkle_proof = { path = "../../consensus/merkle_proof" }
ethereum_ssz = "1.0.0-beta.2"
eth2_hashing = "0.3.0"
ethereum_hashing = "1.0.0-beta.2"
tree_hash = "1.0.0-beta.0"
tokio = { version = "1.14.0", features = ["full"] }
slog = "2.5.2"

View File

@@ -1,5 +1,5 @@
use crate::common::genesis_deposits;
use eth2_hashing::hash;
use ethereum_hashing::hash;
use rayon::prelude::*;
use ssz::Encode;
use state_processing::initialize_beacon_state_from_eth1;