Proof
Proof is library for validating and manipulating merkle proofs
of partial objects.
The library conforms with the evolving Ethereum 2.0
specification
merkle proof partials. Until version 1.0, expect the API to be unstable.
Getting Started
Add the following to your projects Cargo.toml under [dependencies]:
proof = { git = "https://github.com/c-o-l-o-r/proof" }
proof_derive = { git = "https://github.com/c-o-l-o-r/proof" }
If you plan to use ssz_types, also add:
ssz_types = { git = "https://github.com/sigp/lighthouse" }
Example
// S's merkle tree representation
//
// root(0)
// / \
// a(1) b(2) -----+
// / \
// +-- data(5) --+ len(6)
// / \
// i(11) i(12)
// / \ / \
// b[0,1](23) b[2,3](24) b[4,5](26) b[6,7](27)
use ;
For additional usage examples, see the tests directory.
License
Licensed under Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)