[−][src]Trait bm::Construct
Construct for a merkle tree.
Associated Types
Loading content...Required methods
fn intermediate_of(left: &Self::Value, right: &Self::Value) -> Self::Value
Get the intermediate value of given left and right child.
fn empty_at<DB: WriteBackend<Construct = Self> + ?Sized>(
db: &mut DB,
depth_to_bottom: usize
) -> Result<Self::Value, DB::Error>
db: &mut DB,
depth_to_bottom: usize
) -> Result<Self::Value, DB::Error>
Get or create the empty value given a backend. empty_at(0)
should always equal to Value::End(Default::default())
.
Implementors
impl<D: Digest, V> Construct for InheritedDigestConstruct<D, V> where
V: From<GenericArray<u8, D::OutputSize>> + AsRef<[u8]> + Default + Clone,
[src]
V: From<GenericArray<u8, D::OutputSize>> + AsRef<[u8]> + Default + Clone,
type Value = V
fn intermediate_of(left: &Self::Value, right: &Self::Value) -> Self::Value
[src]
fn empty_at<DB: WriteBackend<Construct = Self> + ?Sized>(
db: &mut DB,
depth_to_bottom: usize
) -> Result<Self::Value, DB::Error>
[src]
db: &mut DB,
depth_to_bottom: usize
) -> Result<Self::Value, DB::Error>
impl<D: Digest, V> Construct for UnitDigestConstruct<D, V> where
V: From<GenericArray<u8, D::OutputSize>> + AsRef<[u8]> + Default + Clone,
[src]
V: From<GenericArray<u8, D::OutputSize>> + AsRef<[u8]> + Default + Clone,