From ebcbbfc7e72b70596353af9ac4c140cba3ce05df Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 2 Oct 2024 17:57:14 +0000 Subject: [PATCH] Migrate to `sapling-crypto 0.3`, `orchard 0.10` --- Cargo.lock | 10 ++++++---- Cargo.toml | 6 ++---- zcash_client_backend/CHANGELOG.md | 1 + zcash_client_sqlite/CHANGELOG.md | 2 ++ zcash_keys/CHANGELOG.md | 3 +++ zcash_primitives/CHANGELOG.md | 3 ++- zcash_proofs/CHANGELOG.md | 3 +++ 7 files changed, 19 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6523091ab9..2f9e2ae197 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2639,8 +2639,9 @@ checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" [[package]] name = "orchard" -version = "0.9.1" -source = "git+https://github.com/zcash/orchard?rev=55fb089a335bbbc1cda186c706bc037073df8eb7#55fb089a335bbbc1cda186c706bc037073df8eb7" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f18e997fa121de5c73e95cdc7e8512ae43b7de38904aeea5e5713cc48f3c0ba" dependencies = [ "aes", "bitvec", @@ -3656,8 +3657,9 @@ dependencies = [ [[package]] name = "sapling-crypto" -version = "0.2.0" -source = "git+https://github.com/zcash/sapling-crypto?rev=b1ad3694ee13a2fc5d291ad04721a6252da0993c#b1ad3694ee13a2fc5d291ad04721a6252da0993c" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfff8cfce16aeb38da50b8e2ed33c9018f30552beff2210c266662a021b17f38" dependencies = [ "aes", "bellman", diff --git a/Cargo.toml b/Cargo.toml index cd9cb23962..0c0e6a73e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,11 +57,11 @@ bitvec = "1" blake2s_simd = "1" bls12_381 = "0.8" jubjub = "0.10" -sapling = { package = "sapling-crypto", version = "0.2", default-features = false } +sapling = { package = "sapling-crypto", version = "0.3", default-features = false } # - Orchard nonempty = "0.7" -orchard = { version = "0.9", default-features = false } +orchard = { version = "0.10", default-features = false } pasta_curves = "0.5" # - Transparent @@ -163,8 +163,6 @@ codegen-units = 1 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(zcash_unstable, values("zfuture"))'] } [patch.crates-io] -sapling-crypto = { git = "https://github.com/zcash/sapling-crypto", rev = "b1ad3694ee13a2fc5d291ad04721a6252da0993c" } -orchard = { git = "https://github.com/zcash/orchard", rev = "55fb089a335bbbc1cda186c706bc037073df8eb7" } incrementalmerkletree = { git = "https://github.com/zcash/incrementalmerkletree", rev = "ffe4234788fd22662b937ba7c6ea01535fcc1293" } incrementalmerkletree-testing = { git = "https://github.com/zcash/incrementalmerkletree", rev = "ffe4234788fd22662b937ba7c6ea01535fcc1293" } shardtree = { git = "https://github.com/zcash/incrementalmerkletree", rev = "ffe4234788fd22662b937ba7c6ea01535fcc1293" } diff --git a/zcash_client_backend/CHANGELOG.md b/zcash_client_backend/CHANGELOG.md index 79528c3a1e..817054d191 100644 --- a/zcash_client_backend/CHANGELOG.md +++ b/zcash_client_backend/CHANGELOG.md @@ -13,6 +13,7 @@ and this library adheres to Rust's notion of - `WalletSummary::recovery_progress` ### Changed +- Migrated to `orchard 0.10`, `sapling-crypto 0.3`. - The `Account` trait now uses an associated type for its `AccountId` type instead of a type parameter. This change allows for the simplification of some type signatures. diff --git a/zcash_client_sqlite/CHANGELOG.md b/zcash_client_sqlite/CHANGELOG.md index 6e13ef7654..0dc86e47df 100644 --- a/zcash_client_sqlite/CHANGELOG.md +++ b/zcash_client_sqlite/CHANGELOG.md @@ -7,6 +7,8 @@ and this library adheres to Rust's notion of ## [Unreleased] +### Changed +- Migrated to `orchard 0.10`, `sapling-crypto 0.3`. - `zcash_client_sqlite::error::SqliteClientError::RequestedRewindInvalid` is now a structured variant. diff --git a/zcash_keys/CHANGELOG.md b/zcash_keys/CHANGELOG.md index a0bb242d35..2dcc873fbe 100644 --- a/zcash_keys/CHANGELOG.md +++ b/zcash_keys/CHANGELOG.md @@ -12,6 +12,9 @@ and this library adheres to Rust's notion of - `impl std::error::Error for DecodingError` - `impl std::error::Error for DerivationError` +### Changed +- Migrated to `orchard 0.10`, `sapling-crypto 0.3`. + ## [0.3.0] - 2024-08-19 ### Notable changes - `zcash_keys`: diff --git a/zcash_primitives/CHANGELOG.md b/zcash_primitives/CHANGELOG.md index 0eff56ecb7..a4365f51e5 100644 --- a/zcash_primitives/CHANGELOG.md +++ b/zcash_primitives/CHANGELOG.md @@ -10,7 +10,8 @@ and this library adheres to Rust's notion of ## [0.17.0] - 2024-08-26 ### Changed -- Update dependencies to `zcash_protocol 0.3.0`, `zcash_address 0.5.0` +- Update dependencies to `incrementalmerkletree 0.7`, `orchard 0.10`, + `sapling-crypto 0.3`, `zcash_protocol 0.3.0`, `zcash_address 0.5.0`. ## [0.16.0] - 2024-08-19 diff --git a/zcash_proofs/CHANGELOG.md b/zcash_proofs/CHANGELOG.md index d659b0a025..22a22d21bb 100644 --- a/zcash_proofs/CHANGELOG.md +++ b/zcash_proofs/CHANGELOG.md @@ -7,6 +7,9 @@ and this library adheres to Rust's notion of ## [Unreleased] +### Changed +- Migrated to `sapling-crypto 0.3`. + ## [0.17.0] - 2024-08-26 ### Changed