stellar_contract_utils/crypto/
error.rs

1use soroban_sdk::contracterror;
2
3#[contracterror]
4#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
5#[repr(u32)]
6pub enum CryptoError {
7    /// The merkle proof length is out of bounds.
8    MerkleProofOutOfBounds = 1400,
9    /// The index of the leaf is out of bounds.
10    MerkleIndexOutOfBounds = 1401,
11    /// No data in hasher state.
12    HasherEmptyState = 1402,
13}