Skip to content
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

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

umadayal
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Oct 17, 2024

SP1 Performance Test Results

Branch: umadayal/test-curve25519
Commit: 0b720da5
Author: umadayal

program cycles execute (mHz) core (kHZ) compress (KHz) time success
fibonacci 11291 0.17 2.95 0.46 25s
ssz-withdrawals 2757356 10.65 117.60 38.80 1m11s
tendermint 12593597 5.45 240.13 107.56 1m59s

@@ -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"}
Copy link
Member

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.

Copy link
Contributor Author

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

Comment on lines 82 to 94
/// 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);
// }

Copy link
Member

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?

@nhtyy nhtyy added the maybe-stale A pr or issue that hasnt seen alot of activity recently label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maybe-stale A pr or issue that hasnt seen alot of activity recently
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants