diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e551e74611..f4eb1d44fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -181,10 +181,12 @@ jobs: path: crates # We use a synthetic crate to ensure no dev-dependencies are enabled, which can # be incompatible with some of these targets. + - name: Copy Rust toolchain into the root for use in synthetic crate setup + run: cp crates/rust-toolchain.toml . - name: Create synthetic crate for testing run: cargo init --lib ci-build - - name: Copy Rust version into synthetic crate - run: cp crates/rust-toolchain.toml ci-build/ + - name: Move Rust toolchain file into synthetic crate + run: mv rust-toolchain.toml ci-build/ - name: Copy patch directives into synthetic crate run: | echo "[patch.crates-io]" >> ./ci-build/Cargo.toml diff --git a/Cargo.lock b/Cargo.lock index 2cf521ebd6..c19b349c80 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -790,6 +790,15 @@ version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" +[[package]] +name = "core2" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "239fa3ae9b63c2dc74bd3fa852d4792b8b305ae64eeede946265b6af62f1fff3" +dependencies = [ + "memchr", +] + [[package]] name = "cpp_demangle" version = "0.4.3" @@ -1746,6 +1755,18 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "getset" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3586f256131df87204eb733da72e3d3eb4f343c639f4b7be279ac7c48baeafe" +dependencies = [ + "proc-macro-error2", + "proc-macro2", + "quote", + "syn 2.0.63", +] + [[package]] name = "gimli" version = "0.28.1" @@ -1842,6 +1863,18 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47716fe1ae67969c5e0b2ef826f32db8c3be72be325e1aa3c1951d06b5575ec5" +[[package]] +name = "halo2_poseidon" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fa3da60b81f02f9b33ebc6252d766f843291fb4d2247a07ae73d20b791fc56f" +dependencies = [ + "bitvec", + "ff", + "group", + "pasta_curves", +] + [[package]] name = "halo2_proofs" version = "0.3.0" @@ -2426,12 +2459,9 @@ dependencies = [ [[package]] name = "memuse" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2145869435ace5ea6ea3d35f59be559317ec9a0d04e1812d5f185a87b6d36f1a" -dependencies = [ - "nonempty", -] +checksum = "3d97bbf43eb4f088f8ca469930cde17fa036207c9a5e02ccc5107c4e8b17c964" [[package]] name = "merlin" @@ -2699,17 +2729,20 @@ checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" [[package]] name = "orchard" -version = "0.10.0" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f18e997fa121de5c73e95cdc7e8512ae43b7de38904aeea5e5713cc48f3c0ba" +checksum = "f2f4cf75baf85bbd6f15eb919b7e70afdc4a311eef0a3e8a053e65542fe2b58e" dependencies = [ "aes", "bitvec", "blake2b_simd", + "core2", "ff", "fpe", + "getset", "group", "halo2_gadgets", + "halo2_poseidon", "halo2_proofs", "hex", "incrementalmerkletree", @@ -2721,6 +2754,7 @@ dependencies = [ "rand", "reddsa", "serde", + "sinsemilla", "subtle", "tracing", "visibility", @@ -3130,6 +3164,28 @@ dependencies = [ "toml_edit 0.19.15", ] +[[package]] +name = "proc-macro-error-attr2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96de42df36bb9bba5542fe9f1a054b8cc87e172759a1868aa05c1f3acc89dfc5" +dependencies = [ + "proc-macro2", + "quote", +] + +[[package]] +name = "proc-macro-error2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11ec05c52be0a07b08061f7dd003e7d7092e0472bc731b4af7bb1ef876109802" +dependencies = [ + "proc-macro-error-attr2", + "proc-macro2", + "quote", + "syn 2.0.63", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -3978,6 +4034,17 @@ dependencies = [ "time", ] +[[package]] +name = "sinsemilla" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d268ae0ea06faafe1662e9967cd4f9022014f5eeb798e0c302c876df8b7af9c" +dependencies = [ + "group", + "pasta_curves", + "subtle", +] + [[package]] name = "siphasher" version = "0.3.11" @@ -6203,7 +6270,7 @@ dependencies = [ [[package]] name = "zcash_primitives" -version = "0.20.0" +version = "0.20.1" dependencies = [ "aes", "assert_matches", diff --git a/Cargo.toml b/Cargo.toml index 7a7a2db0d5..1a4b233f71 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -62,7 +62,7 @@ sapling = { package = "sapling-crypto", version = "0.3", default-features = fals # - Orchard nonempty = "0.7" -orchard = { version = "0.10", default-features = false } +orchard = { version = "0.10.2", default-features = false } pasta_curves = "0.5" # - Transparent diff --git a/zcash_primitives/CHANGELOG.md b/zcash_primitives/CHANGELOG.md index 4b8d6a0e59..6926cace71 100644 --- a/zcash_primitives/CHANGELOG.md +++ b/zcash_primitives/CHANGELOG.md @@ -7,6 +7,11 @@ and this library adheres to Rust's notion of ## [Unreleased] +## [0.19.1, 0.20.1] - 2025-05-09 + +### Fixed +- Migrated to `orchard 0.10.2` to fix a missing feature dependency. + ## [0.20.0] - 2024-11-14 ### Added diff --git a/zcash_primitives/Cargo.toml b/zcash_primitives/Cargo.toml index d1421e2002..27d478823f 100644 --- a/zcash_primitives/Cargo.toml +++ b/zcash_primitives/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "zcash_primitives" description = "Rust implementations of the Zcash primitives" -version = "0.20.0" +version = "0.20.1" authors = [ "Jack Grigg ", "Kris Nuttycombe " @@ -47,7 +47,7 @@ ff.workspace = true group = { workspace = true, features = ["wnaf-memuse"] } jubjub.workspace = true nonempty.workspace = true -orchard.workspace = true +orchard = { workspace = true, features = ["circuit"] } sapling.workspace = true zcash_spec.workspace = true