mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor: finalize proofs mod move from reth-primitives to reth-primitives-traits (#13875)
This commit is contained in:
@ -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"
|
||||
]
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
Reference in New Issue
Block a user