-
Notifications
You must be signed in to change notification settings - Fork 342
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
Test patch version 3.2.0 of curve25519-dalek #1662
base: dev
Are you sure you want to change the base?
Conversation
SP1 Performance Test Results Branch: umadayal/test-curve25519
|
examples/Cargo.toml
Outdated
@@ -59,7 +59,8 @@ sp1-lib = { path = "../crates/zkvm/lib", default-features = false } | |||
sp1-zkvm = { path = "../crates/zkvm/entrypoint", default-features = false } | |||
|
|||
[patch.crates-io] | |||
curve25519-dalek = { git = "https://github.com/sp1-patches/curve25519-dalek", branch = "patch-curve25519-v4.1.3" } | |||
ed25519-dalek = { git = "https://github.com/sp1-patches/ed25519-dalek.git", branch = "patch-ed25519-v1.0.1"} | |||
curve25519-dalek = { git = "https://github.com/sp1-patches/curve25519-dalek", branch = "patch-curve25519-v3.2.0"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't you keep the original curve25519-dalek patch here? Or did that break your logic because it was patching the version of curve25519-dalek
inside of ed25519-dalek
?
Preferably, I'd like to have a patch for ed25519-dalek
with curve25519-dalek
version 3.x
and then a patch for curve25519-dalek
with version 4.x
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like I need to patch both ed25519 and curve25519-dalek version 3.x or I get errors
/// Emits ED_DECOMPRESS syscall. | ||
// fn test_curve25519_dalek_v3() { | ||
// let input = [1u8; 32]; | ||
// let y = CompressedEdwardsY_dalek_v3(input); | ||
|
||
// println!("cycle-tracker-start: curve25519-dalek-v3 decompress"); | ||
// let decompressed_key = y.decompress(); | ||
// println!("cycle-tracker-end: curve25519-dalek-v3 decompress"); | ||
|
||
// let compressed_key = decompressed_key.unwrap().compress(); | ||
// assert_eq!(compressed_key, y); | ||
// } | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this commented out?
No description provided.