Enum miden_core::crypto::merkle::MerkleError
source · pub enum MerkleError {
ConflictingRoots(Vec<[BaseElement; 4], Global>),
DepthTooSmall(u8),
DepthTooBig(u64),
NodeNotInStore([BaseElement; 4], NodeIndex),
NumLeavesNotPowerOfTwo(usize),
InvalidIndex(NodeIndex),
InvalidDepth {
expected: u8,
provided: u8,
},
InvalidPath(MerklePath),
InvalidEntriesCount(usize, usize),
NodeNotInSet(u64),
RootNotInStore([BaseElement; 4]),
}
Variants§
ConflictingRoots(Vec<[BaseElement; 4], Global>)
DepthTooSmall(u8)
DepthTooBig(u64)
NodeNotInStore([BaseElement; 4], NodeIndex)
NumLeavesNotPowerOfTwo(usize)
InvalidIndex(NodeIndex)
InvalidDepth
InvalidPath(MerklePath)
InvalidEntriesCount(usize, usize)
NodeNotInSet(u64)
RootNotInStore([BaseElement; 4])
Trait Implementations§
source§impl Clone for MerkleError
impl Clone for MerkleError
source§fn clone(&self) -> MerkleError
fn clone(&self) -> MerkleError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MerkleError
impl Debug for MerkleError
source§impl Display for MerkleError
impl Display for MerkleError
source§impl PartialEq<MerkleError> for MerkleError
impl PartialEq<MerkleError> for MerkleError
source§fn eq(&self, other: &MerkleError) -> bool
fn eq(&self, other: &MerkleError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.