1 2 3 4 5 6 7 8 9
#[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum BrineTreeError { InvalidArgument, TreeFull, InvalidProof, ProofLength, } pub type ProgramResult = Result<(), BrineTreeError>;