mirror of
https://github.com/arnaucube/miden-crypto.git
synced 2026-01-12 09:01:29 +01:00
feat: add from_elements to NodeIndex
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use super::{
|
||||
hash::rpo::{Rpo256, RpoDigest},
|
||||
utils::collections::{vec, BTreeMap, Vec},
|
||||
Felt, Word, ZERO,
|
||||
Felt, StarkField, Word, ZERO,
|
||||
};
|
||||
use core::fmt;
|
||||
|
||||
@@ -26,7 +26,7 @@ pub use simple_smt::SimpleSmt;
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum MerkleError {
|
||||
DepthTooSmall(u8),
|
||||
DepthTooBig(u8),
|
||||
DepthTooBig(u64),
|
||||
NumLeavesNotPowerOfTwo(usize),
|
||||
InvalidIndex(NodeIndex),
|
||||
InvalidDepth { expected: u8, provided: u8 },
|
||||
|
||||
Reference in New Issue
Block a user