1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use super::Word;
use crate::utils::{collections::Vec, string::String};
#[derive(Clone, Debug)]
pub enum InputError {
NotFieldElement(u64, &'static str),
TooManyStackValues(usize, usize),
DuplicateAdviceRoot([u8; 32]),
}
#[derive(Clone, Debug)]
pub enum AdviceSetError {
DepthTooSmall,
DepthTooBig(u32),
NumLeavesNotPowerOfTwo(usize),
InvalidKey(u64),
InvalidIndex(u32, u64),
InvalidDepth(u32, u32),
InvalidPath(Vec<Word>),
NodeNotInSet(u64),
}
#[derive(Clone, Debug)]
pub enum LibraryError {
ModuleNotFound(String),
}