-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from rozbb/separate-out-mem-backed-tree
Large refactor. See PR for details
- Loading branch information
Showing
13 changed files
with
1,132 additions
and
767 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## Unreleased | ||
|
||
### Additions | ||
|
||
* Added `indices_for_inclusion_proof()` and `indices_for_consistency_proof()` methods. These allow the construction of inclusion proofs for trees which do not fit into memory. | ||
* Relatedly, added `InclusionProof::from_digests()` and `ConsistencyProof::from_digests()` | ||
|
||
### Removals | ||
|
||
* Removed `SimpleWriter` trait in favor of the pre-existing `digest::Update` | ||
* Removed `serde` trait impls from `InclusionProof`, `ConsistencyProof`, and `RootHash` | ||
|
||
### Changes | ||
|
||
* Renamed the `CtMerkleTree` struct to `MemoryBackedTree` | ||
* Renamed the `CanonicalSerialize` trait to `HashableLeaf` | ||
* Changed argument to `MemoryBackedTree::prove_consistency` to be the number of additions, rather than the size of the prefix | ||
* Made all verification methods panic-free |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.