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

fix: patch bls and bn #1695

Merged
merged 5 commits into from
Oct 25, 2024
Merged

fix: patch bls and bn #1695

merged 5 commits into from
Oct 25, 2024

Conversation

yuwen01
Copy link
Contributor

@yuwen01 yuwen01 commented Oct 24, 2024

Before, the sp1 program imported the bn and bls patches directly, like bn = { git = "sp1-patches/bn" }.

Now, they import the unpatched version, and the patch is applied from examples/cargo.toml

Copy link

github-actions bot commented Oct 24, 2024

SP1 Performance Test Results

Branch: yuwen/patch-curves
Commit: 0cf7b71b
Author: yuwen01

program cycles execute (mHz) core (kHZ) compress (KHz) time success
fibonacci 11291 0.18 2.98 0.46 24s
ssz-withdrawals 2757356 10.98 117.27 38.39 1m12s
tendermint 12593597 5.42 235.80 105.92 2m1s


# Example legacy elf
examples/elf
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When jonathan made !include_elf, he also manually copied the elf from /target to the workspace root, to maintain backward compatibility with the old !include_bytes method. Let's gitignore that elf in examples.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we gitignore the cargo.lock in examples too?

@@ -71,3 +71,5 @@ sha2-v0-10-6 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", packa
sha2-v0-9-9 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", package = "sha2", branch = "patch-sha2-v0.9.9" }
sha2-v0-9-8 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", package = "sha2", branch = "patch-sha2-v0.9.8" }
tiny-keccak = { git = "https://github.com/sp1-patches/tiny-keccak", branch = "patch-v2.0.2" }
substrate-bn = { git = "https://github.com/sp1-patches/bn", rev = "43d854d45b5727b1ff2b9f346d728e785bb8395c"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we should make this an official tag instead of a random rev?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed i need some kind of admin access to work on that today

examples/bn254/program/Cargo.toml Outdated Show resolved Hide resolved
@yuwen01 yuwen01 merged commit 18f7a5c into dev Oct 25, 2024
11 checks passed
@yuwen01 yuwen01 deleted the yuwen/patch-curves branch October 25, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants