babylon-merkle 0.14.0

CometBFT compatible Merkle proofs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Error, Debug, PartialEq)]
pub enum MerkleError {
    #[error("Merkle error: {0}")]
    GenericErr(String),
}

impl MerkleError {
    pub fn generic_err(msg: impl Into<String>) -> Self {
        MerkleError::GenericErr(msg.into())
    }
}