refactor: finalize proofs mod move from reth-primitives to reth-primitives-traits (#13875)

This commit is contained in:
Léa Narzis
2025-01-22 21:15:47 +01:00
committed by GitHub
parent 3b0e70a512
commit 6c762565b8
16 changed files with 30 additions and 41 deletions

View File

@ -21,7 +21,6 @@ reth-static-file-types.workspace = true
# ethereum
alloy-consensus.workspace = true
alloy-primitives = { workspace = true, features = ["rand", "rlp"] }
alloy-trie = { workspace = true, features = ["serde"] }
# for eip-4844
c-kzg = { workspace = true, features = ["serde"], optional = true }
@ -66,7 +65,6 @@ std = [
"alloy-primitives/std",
"once_cell/std",
"serde/std",
"alloy-trie/std",
"reth-ethereum-forks/std",
"derive_more/std",
"serde_json/std",
@ -87,7 +85,6 @@ arbitrary = [
"reth-primitives-traits/arbitrary",
"alloy-consensus/arbitrary",
"alloy-primitives/arbitrary",
"alloy-trie/arbitrary",
"reth-ethereum-primitives/arbitrary",
"reth-codecs/arbitrary"
]

View File

@ -22,7 +22,6 @@
extern crate alloc;
mod block;
pub mod proofs;
mod receipt;
pub use reth_static_file_types as static_file;
pub mod transaction;

View File

@ -1,18 +0,0 @@
//! Helper function for calculating Merkle proofs and hashes.
pub use alloy_trie::root::ordered_trie_root_with_encoder;
pub use alloy_consensus::proofs::calculate_receipt_root;
/// Calculate a transaction root.
///
/// `(rlp(index), encoded(tx))` pairs.
#[doc(inline)]
pub use alloy_consensus::proofs::calculate_transaction_root;
/// Calculates the root hash of the withdrawals.
#[doc(inline)]
pub use alloy_consensus::proofs::calculate_withdrawals_root;
/// Calculates the root hash for ommer/uncle headers.
#[doc(inline)]
pub use alloy_consensus::proofs::calculate_ommers_root;