mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-18 20:32:45 +00:00
Add signed_root to tree_hash crate
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
pub mod cached_tree_hash;
|
||||
pub mod signed_root;
|
||||
pub mod standard_tree_hash;
|
||||
|
||||
pub const BYTES_PER_CHUNK: usize = 32;
|
||||
@@ -6,6 +7,7 @@ pub const HASHSIZE: usize = 32;
|
||||
pub const MERKLE_HASH_CHUNCK: usize = 2 * BYTES_PER_CHUNK;
|
||||
|
||||
pub use cached_tree_hash::{BTreeOverlay, CachedTreeHashSubTree, Error, TreeHashCache};
|
||||
pub use signed_root::SignedRoot;
|
||||
pub use standard_tree_hash::{efficient_merkleize, TreeHash};
|
||||
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
|
||||
5
eth2/utils/tree_hash/src/signed_root.rs
Normal file
5
eth2/utils/tree_hash/src/signed_root.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
use crate::TreeHash;
|
||||
|
||||
pub trait SignedRoot: TreeHash {
|
||||
fn signed_root(&self) -> Vec<u8>;
|
||||
}
|
||||
Reference in New Issue
Block a user