Compare commits
5 Commits
e1a7a80212
...
13a3c997a3
Author | SHA1 | Date |
---|---|---|
Kris Nuttycombe | 13a3c997a3 | |
Kris Nuttycombe | 65b1537a8b | |
Kris Nuttycombe | 17429d08ad | |
Kris Nuttycombe | 22ee3d8f4e | |
Kris Nuttycombe | ac9ecaca12 |
|
@ -111,7 +111,7 @@ checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7"
|
|||
|
||||
[[package]]
|
||||
name = "incrementalmerkletree"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
dependencies = [
|
||||
"either",
|
||||
"proptest",
|
||||
|
@ -318,7 +318,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "shardtree"
|
||||
version = "0.2.0"
|
||||
version = "0.3.0"
|
||||
dependencies = [
|
||||
"assert_matches",
|
||||
"bitflags 2.4.1",
|
||||
|
|
|
@ -7,8 +7,15 @@ and this project adheres to Rust's notion of
|
|||
|
||||
## Unreleased
|
||||
|
||||
## [0.5.1] - 2024-03-25
|
||||
|
||||
### Added
|
||||
- `incrementalmerkletree::Frontier::tree_size`
|
||||
- Additions under the `test-dependencies` feature flag:
|
||||
- `incrementalmerkletree::frontier::{NonEmptyFrontier, Frontier}::{
|
||||
random_of_size, random_with_prior_subtree_roots
|
||||
}`
|
||||
- `impl Distribution<incrementalmerkletree::frontier::testing::TestNode> for Standard`
|
||||
|
||||
## [0.5.0] - 2023-09-08
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "incrementalmerkletree"
|
||||
description = "Common types, interfaces, and utilities for Merkle tree data structures"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
authors = [
|
||||
"Sean Bowe <ewillbefull@gmail.com>",
|
||||
"Kris Nuttycombe <kris@nutty.land>",
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "shardtree"
|
||||
version = "0.2.0"
|
||||
version = "0.3.0"
|
||||
authors = [
|
||||
"Kris Nuttycombe <kris@nutty.land>",
|
||||
]
|
||||
|
|
|
@ -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 {
|
||||
|
@ -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.")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
)),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue