Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release shardtree v0.3.0 #102

Merged
merged 2 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

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

## Unreleased

## Added
## [0.3.0] - 2024-03-25

### Added
- `ShardTree::{store, store_mut}`
- `ShardTree::insert_frontier`

### Changed
- `shardtree::error::InsertionError` has new variant `MarkedRetentionInvalid`

## [0.2.0] - 2023-11-07

## Added
### Added
- `ShardTree::{root_at_checkpoint_id, root_at_checkpoint_id_caching}`
- `ShardTree::{witness_at_checkpoint_id, witness_at_checkpoint_id_caching}`

## Changed
### Changed
- `ShardTree::root_at_checkpoint` and `ShardTree::root_at_checkpoint_caching` have
been renamed to `root_at_checkpoint_depth` and `root_at_checkpoint_depth_caching`,
respectively.
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.2.0"
version = "0.3.0"
authors = [
"Kris Nuttycombe <[email protected]>",
]
Expand Down
10 changes: 5 additions & 5 deletions shardtree/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ pub enum InsertionError {
InputMalformed(Address),
// The caller attempted to mark the empty tree state as corresponding to the state
// for a spendable note.
// TODO: Add this proper error type for `shardtree-0.3.0`
//MarkedRetentionInvalid,
MarkedRetentionInvalid,
}

impl fmt::Display for InsertionError {
Expand All @@ -108,9 +107,10 @@ impl fmt::Display for InsertionError {
InsertionError::TreeFull => write!(f, "Note commitment tree is full."),
InsertionError::InputMalformed(addr) => {
write!(f, "Input malformed for insertion at address {:?}", addr)
} //InsertionError::MarkedRetentionInvalid => {
// write!(f, "Cannot use `Marked` retention for the empty tree.")
//}
}
InsertionError::MarkedRetentionInvalid => {
write!(f, "Cannot use `Marked` retention for the empty tree.")
}
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions shardtree/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,7 @@ impl<
is_marked: true, ..
}
| Retention::Marked => Err(ShardTreeError::Insert(
//TODO: use InsertionError::MarkedRetentionInvalid for `shardtree-0.3.0`
InsertionError::CheckpointOutOfOrder,
InsertionError::MarkedRetentionInvalid,
)),
}
}
Expand Down
Loading