Skip to main content

thru_base/
bintrie_error.rs

1use thiserror::Error;
2
3/// Errors that can occur during binary trie operations
4#[derive(Error, Debug)]
5pub enum BinTrieError {
6    #[error("Key already exists")]
7    KeyExists,
8    #[error("Key not found")]
9    KeyNotFound,
10    #[error("Invalid proof")]
11    InvalidProof,
12    #[error("Existing proof")]
13    ExistingProof,
14    #[error("Bad proof")]
15    BadProof,
16    #[error("Invalid hash length")]
17    InvalidHashLength,
18    #[error("Invalid pubkey length")]
19    InvalidPubkeyLength,
20    #[error("Proof verification failed")]
21    ProofVerificationFailed,
22}