1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use super::Word;
use crate::utils::collections::Vec;
#[derive(Clone, Debug)]
pub enum InputError {
NotFieldElement(u64, &'static str),
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),
}