Fork of https://github.com/0xPARC/pod2
* refactor merkletree to work with disk keyvalue database (wip) * various fixes post reimplementation; pending delete leaf * add delete operation case for the new in db tree approach * polish tree update & delete; everything works (pending polishing) * polish panics into errs, prints, etc * Implement iterator * Lint * fix case no-siblings * case delete with semi-empty branch * polishing * starting to add rocksdb & heeddb for the DB & Txn traits * Satisfy the borrow checker * abstract merkletree tests to use the various available DBs * update store_node interface (rm hash input), rm heed.rs * polishing * typos * Ditch transactions * add feature for rocksdb, return errs at new_with_db, remove empty leaf case in Leaf::new * intermediate instead of leaf in empty node when deleting leaf --------- Co-authored-by: Ahmad <root@ahmadafuni.com> |
||
|---|---|---|
| .github/workflows | ||
| book | ||
| examples | ||
| src | ||
| .gitignore | ||
| build.rs | ||
| Cargo.toml | ||
| README.md | ||
| rust-analyzer.toml | ||
| rust-toolchain.toml | ||
| rustfmt.toml | ||
POD2
Usage
- Run tests:
cargo test --release - Rustfmt:
cargo fmt - Check typos:
typos -c .github/workflows/typos.toml
Book
The book contains the specification of POD2. A rendered version of the site can be found at: https://0xparc.github.io/pod2/
To run it locally:
- Requirements
- mdbook:
cargo install mdbook - mdbook-katex:
cargo install mdbook-katex
- mdbook:
- Go to the book directory:
cd book - Run the mdbook:
mdbook serve