mirror of
https://github.com/pezkuwichain/merkle-mountain-range.git
synced 2026-06-25 21:51:05 +00:00
BREAKCHANGE: support multi leaves merkle proof
This commit is contained in:
@@ -5,6 +5,10 @@ pub enum Error {
|
||||
GetRootOnEmpty,
|
||||
InconsistentStore,
|
||||
StoreError(crate::string::String),
|
||||
/// proof items is not enough to build a tree
|
||||
CorruptedProof,
|
||||
/// The leaves is an empty list, or beyond the mmr range
|
||||
GenProofForInvalidLeaves,
|
||||
}
|
||||
|
||||
impl core::fmt::Display for Error {
|
||||
@@ -14,6 +18,8 @@ impl core::fmt::Display for Error {
|
||||
GetRootOnEmpty => write!(f, "Get root on an empty MMR")?,
|
||||
InconsistentStore => write!(f, "Inconsistent store")?,
|
||||
StoreError(msg) => write!(f, "Store error {}", msg)?,
|
||||
CorruptedProof => write!(f, "Corrupted proof")?,
|
||||
GenProofForInvalidLeaves => write!(f, "Generate proof ofr invalid leaves")?,
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user