4 releases (breaking)

0.4.0 Mar 1, 2024
0.3.0 May 11, 2022
0.2.0 Mar 13, 2020
0.0.1 Mar 4, 2020

#1137 in Magic Beans

Download history 1209/week @ 2024-02-07 1258/week @ 2024-02-14 1112/week @ 2024-02-21 853/week @ 2024-02-28 302/week @ 2024-03-06 1100/week @ 2024-03-13 948/week @ 2024-03-20 379/week @ 2024-03-27 507/week @ 2024-04-03 2645/week @ 2024-04-10 2282/week @ 2024-04-17 2608/week @ 2024-04-24 3697/week @ 2024-05-01 2456/week @ 2024-05-08 6603/week @ 2024-05-15 7509/week @ 2024-05-22

20,844 downloads per month
Used in 11 crates (via zebra-chain)

MIT/Apache

48KB
916 lines

zcash_history

Special implementation of Merkle mountain ranges (MMR) for Zcash!

Build Status

The main design goals of this MMR implementation are

  • Allow zero-cache and avoid db callbacks. As it is implemented, calling side must just smartly pre-load MMR nodes from the database (about log2(tree length) for append, twice as much for deletion).

  • Reuse as much logic between rust and c++ clients and place it here and librustzcash.

  • Close to zero memory consumption.

License

zcash_history is distributed under the terms of both the MIT license and the Apache License (Version 2.0), at your choice.

See LICENSE-APACHE, and LICENSE-MIT for details.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in zcash_history by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.5–1MB
~17K SLoC