Skip to content

Commit

Permalink
Update to incrementalmerkletree 0.4, orchard 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
nuttycom committed Jun 6, 2023
1 parent b0ca7ff commit 3dd0c63
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 21 deletions.
6 changes: 0 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,3 @@ members = [
lto = true
panic = 'abort'
codegen-units = 1

[patch.crates-io]
zcash_encoding = { path = "components/zcash_encoding" }
zcash_note_encryption = { path = "components/zcash_note_encryption" }
incrementalmerkletree = { git = "https://github.com/zcash/incrementalmerkletree.git", rev = "2dbdd345670ea22337a0efa6734272d54551285f" }
orchard = { git = "https://github.com/zcash/orchard.git", rev = "35054e85b85dc144b4572ed0fd57ea164f50c26a" }
10 changes: 9 additions & 1 deletion zcash_client_backend/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,21 @@ and this library adheres to Rust's notion of
### Added
- `impl Eq for zcash_client_backend::address::RecipientAddress`
- `impl Eq for zcash_client_backend::zip321::{Payment, TransactionRequest}`
- `data_api::NullifierQuery` for use with `WalletRead::get_sapling_nullifiers`

### Changed
- MSRV is now 1.65.0.
- Bumped dependencies to `hdwallet 0.4`.
- Bumped dependencies to `hdwallet 0.4`, `zcash_note_encryption 0.4`,
`incrementalmerkletree 0.4`, `orchard 0.5`
- `WalletRead::get_memo` now returns `Result<Option<Memo>, Self::Error>`
instead of `Result<Memo, Self::Error>` in order to make representable
wallet states where the full note plaintext is not available.
- `WalletRead::get_nullifiers` has been renamed to `WalletRead::get_sapling_nullifiers`
and its signature has changed; it now subsumes the removed `WalletRead::get_all_nullifiers`.
- `wallet::SpendableNote` has been renamed to `wallet::ReceivedSaplingNote`.

### Removed
- `WalletRead::get_all_nullifiers`

## [0.9.0] - 2023-04-28
### Added
Expand Down
6 changes: 3 additions & 3 deletions zcash_client_backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ exclude = ["*.proto"]
development = ["zcash_proofs"]

[dependencies]
incrementalmerkletree = { version = "0.3", features = ["legacy-api"] }
incrementalmerkletree = { version = "0.4", features = ["legacy-api"] }
zcash_address = { version = "0.2", path = "../components/zcash_address" }
zcash_encoding = { version = "0.2", path = "../components/zcash_encoding" }
zcash_note_encryption = "0.3"
zcash_note_encryption = "0.4"
zcash_primitives = { version = "0.11", path = "../zcash_primitives", default-features = false }

# Dependencies exposed in a public API:
Expand Down Expand Up @@ -54,7 +54,7 @@ subtle = "2.2.3"
# - Shielded protocols
bls12_381 = "0.8"
group = "0.13"
orchard = { version = "0.4", default-features = false }
orchard = { version = "0.5", default-features = false }

# - Test dependencies
proptest = { version = "1.0.0", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion zcash_client_backend/src/welding_rig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl ScanningKey for DiversifiableFullViewingKey {
) -> Self::Nf {
note.nf(
key,
u64::try_from(witness.tip_position())
u64::try_from(witness.position())
.expect("Sapling note commitment tree position must fit into a u64"),
)
}
Expand Down
2 changes: 1 addition & 1 deletion zcash_client_sqlite/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ and this library adheres to Rust's notion of
## [Unreleased]
### Changed
- MSRV is now 1.65.0.
- Bumped dependencies to `hdwallet 0.4`.
- Bumped dependencies to `hdwallet 0.4`, `incrementalmerkletree 0.4`

### Removed
- The empty `wallet::transact` module has been removed.
Expand Down
4 changes: 2 additions & 2 deletions zcash_client_sqlite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ edition = "2021"
rust-version = "1.65"

[dependencies]
incrementalmerkletree = { version = "0.3", features = ["legacy-api"] }
incrementalmerkletree = { version = "0.4", features = ["legacy-api"] }
zcash_client_backend = { version = "0.9", path = "../zcash_client_backend" }
zcash_primitives = { version = "0.11", path = "../zcash_primitives", default-features = false }

Expand Down Expand Up @@ -51,7 +51,7 @@ proptest = "1.0.0"
rand_core = "0.6"
regex = "1.4"
tempfile = "3.5.0"
zcash_note_encryption = "0.3"
zcash_note_encryption = "0.4"
zcash_proofs = { version = "0.11", path = "../zcash_proofs" }
zcash_primitives = { version = "0.11", path = "../zcash_primitives", features = ["test-dependencies"] }
zcash_address = { version = "0.2", path = "../components/zcash_address", features = ["test-dependencies"] }
Expand Down
3 changes: 2 additions & 1 deletion zcash_primitives/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ and this library adheres to Rust's notion of

### Changed
- MSRV is now 1.65.0.
- Bumped dependencies to `secp256k1 0.26`, `hdwallet 0.4`.
- Bumped dependencies to `secp256k1 0.26`, `hdwallet 0.4`, `incrementalmerkletree 0.4`
`zcash_note_encryption 0.4`, `orchard 0.5`

### Removed
- `merkle_tree::Hashable` has been removed and its uses have been replaced by
Expand Down
10 changes: 5 additions & 5 deletions zcash_primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ ff = "0.13"
group = { version = "0.13", features = ["wnaf-memuse"] }
jubjub = "0.10"
nonempty = "0.7"
orchard = { version = "0.4", default-features = false }
orchard = { version = "0.5", default-features = false }

# - Note Commitment Trees
incrementalmerkletree = { version = "0.3", features = ["legacy-api"] }
incrementalmerkletree = { version = "0.4", features = ["legacy-api"] }

# - Static constants
lazy_static = "1"
Expand Down Expand Up @@ -82,17 +82,17 @@ aes = "0.8"
fpe = "0.6"

[dependencies.zcash_note_encryption]
version = "0.3"
version = "0.4"
features = ["pre-zip-212"]

[dev-dependencies]
chacha20poly1305 = "0.10"
criterion = "0.4"
incrementalmerkletree = { version = "0.3", features = ["legacy-api", "test-dependencies"] }
incrementalmerkletree = { version = "0.4", features = ["legacy-api", "test-dependencies"] }
proptest = "1.0.0"
assert_matches = "1.3.0"
rand_xorshift = "0.3"
orchard = { version = "0.4", default-features = false, features = ["test-dependencies"] }
orchard = { version = "0.5", default-features = false, features = ["test-dependencies"] }

[target.'cfg(unix)'.dev-dependencies]
pprof = { version = "0.11", features = ["criterion", "flamegraph"] } # MSRV 1.56
Expand Down
1 change: 1 addition & 0 deletions zcash_proofs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this library adheres to Rust's notion of

## [Unreleased]
### Changed
- Bumped dependencies to `incrementalmerkletree 0.4`, `zcash_primitives 0.12`
- MSRV is now 1.65.0.

### Removed
Expand Down
2 changes: 1 addition & 1 deletion zcash_proofs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ zcash_primitives = { version = "0.11", path = "../zcash_primitives", default-fea
bellman = { version = "0.14", default-features = false, features = ["groth16"] }
bls12_381 = "0.8"
group = "0.13"
incrementalmerkletree = { version = "0.3", features = ["legacy-api"] }
incrementalmerkletree = { version = "0.4", features = ["legacy-api"] }
jubjub = "0.10"
lazy_static = "1"
minreq = { version = "2", features = ["https"], optional = true }
Expand Down

0 comments on commit 3dd0c63

Please sign in to comment.