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(sdk): proof request signatures #1845

Merged
merged 3 commits into from
Dec 6, 2024
Merged

Conversation

AdvaithNair
Copy link
Contributor

Motivation

Made some RPC changes in the way that signatures are formed. Now it features a specific "format" request parameter of type MessageFormat. We need to reflect these changes in the SP1 code that calls the RPC.

Solution

Simply updated network.rs, and added the "format" request parameter to all requests. Additionally updated signature code in the codebase to ensure consistency with the RPC.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@AdvaithNair AdvaithNair requested a review from mattstam December 6, 2024 21:21
Copy link

github-actions bot commented Dec 6, 2024

SP1 Performance Test Results

Branch: advaith/proof-request-signatures
Commit: 3647d03
Author: AdvaithNair

program cycles execute (mHz) core (kHZ) compress (KHz) time success
fibonacci 11291 0.19 2.83 0.46 25s
ssz-withdrawals 2757356 16.82 123.88 35.08 1m19s
tendermint 12593597 6.65 269.17 98.70 2m9s

Copy link
Contributor

@mattstam mattstam left a comment

Choose a reason for hiding this comment

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

just update sdk, not examples. run git checkout dev examples

@@ -7,7 +7,7 @@ publish = false

[dependencies]
hex = "0.4.3"
sp1-sdk = { workspace = true }
sp1-sdk = { workspace = true, features = ["network-v2"] }
Copy link
Contributor

Choose a reason for hiding this comment

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

can you remove this?

@mattstam mattstam changed the title fix: proof request signatures fix(sdk): proof request signatures Dec 6, 2024
@mattstam mattstam merged commit aa5d953 into dev Dec 6, 2024
13 of 14 checks passed
@mattstam mattstam deleted the advaith/proof-request-signatures branch December 6, 2024 22:31
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