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);
impl Database for MemoryDB {
fn new(_dbpath: &str) -> Result {
Ok(MemoryDB(HashMap::new()))
}
fn load(_dbpath: &str) -> Result {
Err(Error("Cannot load in-memory DB".to_string()))
}
fn get(&self, key: DBKey) -> Result