fix(zcash): Fix regression in 3.2.2, improve performance by 15-18%, reduce firmware size by 4.4% (#2330)
What changed, and why it matters
This commit updates a Zcash cryptography dependency and changes compiler hints to fix a firmware performance regression and reduce firmware size. There is no security-relevant change visible in the diff.
No security action required. Treat as a routine dependency/performance optimization. If desired, verify the pasta_curves 0.6.2 and 0.6.3 changelogs for any security advisories, though none are referenced in the commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit bumps pasta_curves from 0.6.1 to 0.6.3 in rust/Cargo.lock and enables the ‘asm’ and ‘uninline-portable’ feature flags in rust/zcash_vendor/Cargo.toml. The stated purpose is to reverse a firmware size/performance regression introduced in firmware 3.2.2 and to improve Zcash transaction signing performance. The diff contains only dependency version and feature-flag changes; no code logic affecting cryptographic correctness, input validation, memory safety, or access control is present.
Changed components
rust/zcash_vendor/Cargo.tomlrust/Cargo.lockZcash signing performanceInspect captured patch +4 / −2
### rust/Cargo.lock
@@ -3407,9 +3407,9 @@ dependencies = [
[[package]]
name = "pasta_curves"
-version = "0.6.1"
+version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a0ed53ba43531a06e1f82020907cf192fc3c25d7c0baf5c49c547b74e7103b62"
+checksum = "6c6ffcfacaf7dc81ca2e318f019b6e09f84327ecfbddb4e58574bcebdd123975"
dependencies = [
"blake2b_simd",
"ff 0.14.0",
### rust/zcash_vendor/Cargo.toml
@@ -18,7 +18,9 @@ ff = { version = "0.14", default-features = false, features = [
] }
pasta_curves = { version = "0.6", default-features = false, features = [
"alloc",
+ "asm",
"bits",
+ "uninline-portable",
] }
sinsemilla = "0.2"
subtle = { version = "2.6", default-features = false }Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.