mod proof;
mod tree;
use rs_merkle::{algorithms::Sha256, Hasher};
use serde::{Deserialize, Serialize};
pub type TreeHash = <Sha256 as Hasher>::Hash;
pub const ZERO: TreeHash = [0u8; 32];
pub use proof::{CommitHash, CommitProof, Comparison};
pub use tree::CommitTree;
#[derive(Serialize, Deserialize, Default, Debug, Clone, Eq, PartialEq)]
pub struct CommitState(pub CommitHash, pub CommitProof);
#[derive(Serialize, Deserialize, Default, Debug, Clone, Eq, PartialEq)]
pub struct CommitSpan {
pub before: Option<CommitHash>,
pub after: Option<CommitHash>,
}