Skip to main content

light_sparse_merkle_tree/
error.rs

1use light_hasher::HasherError;
2use thiserror::Error;
3
4#[derive(Debug, Error, PartialEq)]
5pub enum SparseMerkleTreeError {
6    #[error("Update proof cannot update leaf from the changelog.")]
7    CannotUpdateLeaf,
8    #[error("Hasher error: {0}")]
9    Hasher(#[from] HasherError),
10}