-
Notifications
You must be signed in to change notification settings - Fork 645
chore: bump curve25519-dalek from 3.2.1 to 4.1.3 #2252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
29e28d4
a601fc3
038e1b9
bd07e43
6e1edbe
f1d4168
7ba52fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -220,7 +220,7 @@ criterion-stats = "0.3.0" | |
crossbeam-channel = "0.5.13" | ||
csv = "1.3.0" | ||
ctrlc = "3.4.5" | ||
curve25519-dalek = "3.2.1" | ||
curve25519-dalek = { version = "4.1.3", features = ["digest", "rand_core"] } | ||
dashmap = "5.5.3" | ||
derivation-path = { version = "0.2.0", default-features = false } | ||
derivative = "2.2.0" | ||
|
@@ -543,38 +543,16 @@ solana-program = { path = "sdk/program" } | |
solana-zk-sdk = { path = "zk-sdk" } | ||
solana-zk-token-sdk = { path = "zk-token-sdk" } | ||
|
||
yihau marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Our dependency tree has `curve25519-dalek` v3.2.1. They have removed the | ||
# constraint in the next major release. The commit that removes the `zeroize` | ||
# constraint was added to multiple release branches, but not to the 3.2 branch. | ||
# | ||
# `curve25519-dalek` maintainers are saying they do not want to invest any more | ||
# time in the 3.2 release: | ||
# | ||
# https://github.com/dalek-cryptography/curve25519-dalek/issues/452#issuecomment-1749809428 | ||
# | ||
# So we have to fork and create our own release, based on v3.2.1, with the | ||
# commit that removed `zeroize` constraint on the `main` branch cherry-picked on | ||
# top. | ||
# | ||
# `curve25519-dalek` v3.2.1 release: | ||
# | ||
# https://github.com/dalek-cryptography/curve25519-dalek/releases/tag/3.2.1 | ||
# | ||
# Corresponds to commit | ||
# | ||
# https://github.com/dalek-cryptography/curve25519-dalek/commit/29e5c29b0e5c6821e4586af58b0d0891dd2ec639 | ||
# | ||
# Comparison with `b500cdc2a920cd5bff9e2dd974d7b97349d61464`: | ||
# | ||
# https://github.com/dalek-cryptography/curve25519-dalek/compare/3.2.1...solana-labs:curve25519-dalek:b500cdc2a920cd5bff9e2dd974d7b97349d61464 | ||
# | ||
# Or, using the branch name instead of the hash: | ||
# | ||
# https://github.com/dalek-cryptography/curve25519-dalek/compare/3.2.1...solana-labs:curve25519-dalek:3.2.1-unpin-zeroize | ||
# | ||
[patch.crates-io.curve25519-dalek] | ||
git = "https://github.com/anza-xyz/curve25519-dalek.git" | ||
rev = "b500cdc2a920cd5bff9e2dd974d7b97349d61464" | ||
# curve25519-dalek uses the simd backend by default in v4 if possible, | ||
# which has very slow performance on some platforms with opt-level 0, | ||
# which is the default for dev and test builds. | ||
# This slowdown causes certain interactions in the solana-test-validator, | ||
# such as verifying ZK proofs in transactions, to take much more than 400ms, | ||
# creating problems in the testing environment. | ||
# To enable better performance in solana-test-validator during tests and dev builds, | ||
# we override the opt-level to 3 for the crate. | ||
[profile.dev.package.curve25519-dalek] | ||
opt-level = 3 | ||
Comment on lines
+554
to
+555
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you give more of an explanation about why this is added? I suggested this language in the SPL PR, but feel free to improve or clarify it:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added! 7ba52fa |
||
|
||
# Solana RPC nodes experience stalls when running with `tokio` containing this | ||
# commit: | ||
|
Uh oh!
There was an error while loading. Please reload this page.