Tree hash et al

This commit is contained in:
Michael Sproul
2023-01-16 17:24:58 +11:00
parent 7cae5d99d7
commit 69bdd1d61f
16 changed files with 23 additions and 29 deletions

View File

@@ -53,14 +53,8 @@ members = [
"consensus/fork_choice", "consensus/fork_choice",
"consensus/proto_array", "consensus/proto_array",
"consensus/safe_arith", "consensus/safe_arith",
"consensus/ssz",
"consensus/ssz_derive",
"consensus/ssz_types",
"consensus/serde_utils",
"consensus/state_processing", "consensus/state_processing",
"consensus/swap_or_not_shuffle", "consensus/swap_or_not_shuffle",
"consensus/tree_hash",
"consensus/tree_hash_derive",
"crypto/bls", "crypto/bls",
"crypto/eth2_hashing", "crypto/eth2_hashing",

View File

@@ -35,7 +35,7 @@ ethereum_ssz = "1.0.0-beta.2"
ssz_types = "1.0.0-beta.0" ssz_types = "1.0.0-beta.0"
ethereum_ssz_derive = "1.0.0-beta.2" ethereum_ssz_derive = "1.0.0-beta.2"
state_processing = { path = "../../consensus/state_processing" } state_processing = { path = "../../consensus/state_processing" }
tree_hash = "0.4.1" tree_hash = "1.0.0-beta.0"
types = { path = "../../consensus/types" } types = { path = "../../consensus/types" }
tokio = "1.14.0" tokio = "1.14.0"
eth1 = { path = "../eth1" } eth1 = { path = "../eth1" }

View File

@@ -22,7 +22,7 @@ types = { path = "../../consensus/types"}
merkle_proof = { path = "../../consensus/merkle_proof"} merkle_proof = { path = "../../consensus/merkle_proof"}
ethereum_ssz = "1.0.0-beta.2" ethereum_ssz = "1.0.0-beta.2"
ethereum_ssz_derive = "1.0.0-beta.2" ethereum_ssz_derive = "1.0.0-beta.2"
tree_hash = "0.4.1" tree_hash = "1.0.0-beta.0"
parking_lot = "0.12.0" parking_lot = "0.12.0"
slog = "2.5.2" slog = "2.5.2"
superstruct = "0.5.0" superstruct = "0.5.0"

View File

@@ -28,8 +28,8 @@ eth2 = { path = "../../common/eth2" }
state_processing = { path = "../../consensus/state_processing" } state_processing = { path = "../../consensus/state_processing" }
lru = "0.7.1" lru = "0.7.1"
exit-future = "0.2.0" exit-future = "0.2.0"
tree_hash = "0.4.1" tree_hash = "1.0.0-beta.0"
tree_hash_derive = { path = "../../consensus/tree_hash_derive"} tree_hash_derive = "1.0.0-beta.0"
parking_lot = "0.12.0" parking_lot = "0.12.0"
slot_clock = { path = "../../common/slot_clock" } slot_clock = { path = "../../common/slot_clock" }
tempfile = "3.1.0" tempfile = "3.1.0"

View File

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

View File

@@ -32,7 +32,7 @@ parking_lot = "0.12.0"
safe_arith = {path = "../../consensus/safe_arith"} safe_arith = {path = "../../consensus/safe_arith"}
task_executor = { path = "../../common/task_executor" } task_executor = { path = "../../common/task_executor" }
lru = "0.7.7" lru = "0.7.7"
tree_hash = "0.4.1" tree_hash = "1.0.0-beta.0"
sysinfo = "0.26.5" sysinfo = "0.26.5"
system_health = { path = "../../common/system_health" } system_health = { path = "../../common/system_health" }
directory = { path = "../../common/directory" } directory = { path = "../../common/directory" }

View File

@@ -15,5 +15,5 @@ hex = "0.4.2"
[dependencies] [dependencies]
types = { path = "../../consensus/types"} types = { path = "../../consensus/types"}
ethereum_ssz = "1.0.0-beta.2" ethereum_ssz = "1.0.0-beta.2"
tree_hash = "0.4.1" tree_hash = "1.0.0-beta.0"
ethabi = "16.0.0" ethabi = "16.0.0"

View File

@@ -16,7 +16,7 @@ filesystem = { path = "../filesystem" }
types = { path = "../../consensus/types" } types = { path = "../../consensus/types" }
rand = "0.8.5" rand = "0.8.5"
deposit_contract = { path = "../deposit_contract" } deposit_contract = { path = "../deposit_contract" }
tree_hash = "0.4.1" tree_hash = "1.0.0-beta.0"
hex = "0.4.2" hex = "0.4.2"
derivative = "2.1.1" derivative = "2.1.1"
lockfile = { path = "../lockfile" } lockfile = { path = "../lockfile" }

View File

@@ -10,7 +10,7 @@ ssz_types = "1.0.0-beta.0"
eth2_hashing = "0.3.0" eth2_hashing = "0.3.0"
ethereum_ssz_derive = "1.0.0-beta.2" ethereum_ssz_derive = "1.0.0-beta.2"
ethereum_ssz = "1.0.0-beta.2" ethereum_ssz = "1.0.0-beta.2"
tree_hash = "0.4.1" tree_hash = "1.0.0-beta.0"
smallvec = "1.6.1" smallvec = "1.6.1"
[dev-dependencies] [dev-dependencies]

View File

@@ -18,7 +18,7 @@ ethereum_ssz_derive = "1.0.0-beta.2"
ssz_types = "1.0.0-beta.0" ssz_types = "1.0.0-beta.0"
merkle_proof = { path = "../merkle_proof" } merkle_proof = { path = "../merkle_proof" }
safe_arith = { path = "../safe_arith" } safe_arith = { path = "../safe_arith" }
tree_hash = "0.4.1" tree_hash = "1.0.0-beta.0"
types = { path = "../types", default-features = false } types = { path = "../types", default-features = false }
rayon = "1.4.1" rayon = "1.4.1"
eth2_hashing = "0.3.0" eth2_hashing = "0.3.0"
@@ -39,7 +39,7 @@ arbitrary-fuzz = [
"types/arbitrary-fuzz", "types/arbitrary-fuzz",
"bls/arbitrary", "bls/arbitrary",
"merkle_proof/arbitrary", "merkle_proof/arbitrary",
"eth2_ssz/arbitrary", "ethereum_ssz/arbitrary",
"eth2_ssz_types/arbitrary", "ssz_types/arbitrary",
"tree_hash/arbitrary", "tree_hash/arbitrary",
] ]

View File

@@ -30,8 +30,8 @@ ethereum_ssz_derive = "1.0.0-beta.2"
ssz_types = "1.0.0-beta.0" ssz_types = "1.0.0-beta.0"
swap_or_not_shuffle = { path = "../swap_or_not_shuffle" } swap_or_not_shuffle = { path = "../swap_or_not_shuffle" }
test_random_derive = { path = "../../common/test_random_derive" } test_random_derive = { path = "../../common/test_random_derive" }
tree_hash = "0.4.1" tree_hash = "1.0.0-beta.0"
tree_hash_derive = "0.4.0" tree_hash_derive = "1.0.0-beta.0"
rand_xorshift = "0.3.0" rand_xorshift = "0.3.0"
cached_tree_hash = { path = "../cached_tree_hash" } cached_tree_hash = { path = "../cached_tree_hash" }
serde_yaml = "0.8.13" serde_yaml = "0.8.13"
@@ -67,8 +67,8 @@ arbitrary-fuzz = [
"arbitrary", "arbitrary",
"ethereum-types/arbitrary", "ethereum-types/arbitrary",
"bls/arbitrary", "bls/arbitrary",
"eth2_ssz/arbitrary", "ethereum_ssz/arbitrary",
"eth2_ssz_types/arbitrary", "ssz_types/arbitrary",
"swap_or_not_shuffle/arbitrary", "swap_or_not_shuffle/arbitrary",
"tree_hash/arbitrary", "tree_hash/arbitrary",
] ]

View File

@@ -6,7 +6,7 @@ edition = "2021"
[dependencies] [dependencies]
ethereum_ssz = "1.0.0-beta.2" ethereum_ssz = "1.0.0-beta.2"
tree_hash = "0.4.1" tree_hash = "1.0.0-beta.0"
milagro_bls = { git = "https://github.com/sigp/milagro_bls", tag = "v1.4.2", optional = true } milagro_bls = { git = "https://github.com/sigp/milagro_bls", tag = "v1.4.2", optional = true }
rand = "0.7.3" rand = "0.7.3"
serde = "1.0.116" serde = "1.0.116"

View File

@@ -25,7 +25,7 @@ environment = { path = "../lighthouse/environment" }
eth2_network_config = { path = "../common/eth2_network_config" } eth2_network_config = { path = "../common/eth2_network_config" }
genesis = { path = "../beacon_node/genesis" } genesis = { path = "../beacon_node/genesis" }
deposit_contract = { path = "../common/deposit_contract" } deposit_contract = { path = "../common/deposit_contract" }
tree_hash = "0.4.1" tree_hash = "1.0.0-beta.0"
clap_utils = { path = "../common/clap_utils" } clap_utils = { path = "../common/clap_utils" }
lighthouse_network = { path = "../beacon_node/lighthouse_network" } lighthouse_network = { path = "../beacon_node/lighthouse_network" }
validator_dir = { path = "../common/validator_dir", features = ["insecure_keys"] } validator_dir = { path = "../common/validator_dir", features = ["insecure_keys"] }

View File

@@ -26,8 +26,8 @@ serde = "1.0"
serde_derive = "1.0" serde_derive = "1.0"
slog = "2.5.2" slog = "2.5.2"
sloggers = { version = "2.1.1", features = ["json"] } sloggers = { version = "2.1.1", features = ["json"] }
tree_hash = "0.4.1" tree_hash = "1.0.0-beta.0"
tree_hash_derive = "0.4.0" tree_hash_derive = "1.0.0-beta.0"
types = { path = "../consensus/types" } types = { path = "../consensus/types" }
strum = { version = "0.24.1", features = ["derive"] } strum = { version = "0.24.1", features = ["derive"] }

View File

@@ -24,8 +24,8 @@ serde_repr = "0.1.6"
serde_yaml = "0.8.13" serde_yaml = "0.8.13"
ethereum_ssz = "1.0.0-beta.2" ethereum_ssz = "1.0.0-beta.2"
ethereum_ssz_derive = "1.0.0-beta.2" ethereum_ssz_derive = "1.0.0-beta.2"
tree_hash = "0.4.1" tree_hash = "1.0.0-beta.0"
tree_hash_derive = "0.4.0" tree_hash_derive = "1.0.0-beta.0"
cached_tree_hash = { path = "../../consensus/cached_tree_hash" } cached_tree_hash = { path = "../../consensus/cached_tree_hash" }
state_processing = { path = "../../consensus/state_processing" } state_processing = { path = "../../consensus/state_processing" }
swap_or_not_shuffle = { path = "../../consensus/swap_or_not_shuffle" } swap_or_not_shuffle = { path = "../../consensus/swap_or_not_shuffle" }

View File

@@ -13,7 +13,7 @@ tokio = { version = "1.14.0", features = ["time", "rt-multi-thread", "macros"] }
logging = { path = "../common/logging" } logging = { path = "../common/logging" }
[dependencies] [dependencies]
tree_hash = "0.4.1" tree_hash = "1.0.0-beta.0"
clap = "2.33.3" clap = "2.33.3"
slashing_protection = { path = "./slashing_protection" } slashing_protection = { path = "./slashing_protection" }
slot_clock = { path = "../common/slot_clock" } slot_clock = { path = "../common/slot_clock" }