Skip to content

Commit

Permalink
Merge pull request #122 from zcash/release/shardtree-v0.3.2
Browse files Browse the repository at this point in the history
Release `shardtree v0.3.2`
  • Loading branch information
nuttycom authored Dec 10, 2024
2 parents c8ce5ef + 63cbc0a commit 9ea3466
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions shardtree/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to Rust's notion of

## Unreleased

## [0.3.2] - 2024-12-09
- Replaces `unwrap` calls with `expect` calls & documents panics.

## [0.3.1] - 2024-04-03

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion shardtree/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shardtree"
version = "0.3.1"
version = "0.3.2"
authors = [
"Kris Nuttycombe <[email protected]>",
]
Expand Down
4 changes: 4 additions & 0 deletions shardtree/src/legacy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ impl<H: Hashable + Clone + PartialEq> LocatedPrunableTree<H> {
///
/// Returns a copy of this tree updated to include the witness nodes, any partial supertree that is
/// produced from nodes "higher" in the witness tree
///
/// # Panics
///
/// Panics if `witness` corresponds to the empty tree.
pub fn insert_witness_nodes<C, const DEPTH: u8>(
&self,
witness: IncrementalWitness<H, DEPTH>,
Expand Down
4 changes: 4 additions & 0 deletions shardtree/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,10 @@ impl<
}

/// Adds a checkpoint at the rightmost leaf state of the tree.
///
/// # Panics
///
/// Panics if `root` represents a parent node but `root_addr` is a depth-0 leaf address.
pub fn checkpoint(&mut self, checkpoint_id: C) -> Result<bool, ShardTreeError<S::Error>> {
/// Pre-condition: `root_addr` must be the address of `root`.
fn go<H: Hashable + Clone + PartialEq>(
Expand Down

0 comments on commit 9ea3466

Please sign in to comment.