pmtree
Persistent Merkle Tree (optimized & sparse & fixed-size) in Rust
## How to use
```toml
[dependencies]
pmtree = { git = "https://github.com/Rate-Limiting-Nullifier/pmtree" }
```
## Example
In-Memory DB (HashMap) + Keccak
```rust
struct MemoryDB(HashMap);
struct MyKeccak(Keccak);
#[derive(Default)]
struct MemoryDBConfig;
impl Database for MemoryDB {
type Config = MemoryDBConfig;
fn new(_db_config: MemoryDBConfig) -> PmtreeResult {
Ok(MemoryDB(HashMap::new()))
}
fn load(_db_config: MemoryDBConfig) -> PmtreeResult {
Err(DatabaseError(DatabaseErrorKind::CannotLoadDatabase))
}
fn get(&self, key: DBKey) -> PmtreeResult