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

Chore(hook): Add RSA hook #1860

Closed
wants to merge 4 commits into from
Closed

Chore(hook): Add RSA hook #1860

wants to merge 4 commits into from

Conversation

nhtyy
Copy link
Collaborator

@nhtyy nhtyy commented Dec 13, 2024

No description provided.

ctx.rt.state.input_stream_ptr += 1;
let _ = next_len_or_panic(&ctx.rt.state.input_stream);

// SAFTEY: We check if we have a vec in the input stream in the previous line.

Choose a reason for hiding this comment

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

typos:

Suggested change
// SAFTEY: We check if we have a vec in the input stream in the previous line.
// SAFETY: We check if we have a vec in the input stream in the previous line.


fn next_len_or_panic(queue: &VecDeque<Vec<u8>>) -> u32 {
queue.front().map(|vec| vec.len() as u32).unwrap_or_else(|| {
panic!("Syscall Hint Len failed becasue the input stream is exhausted");

Choose a reason for hiding this comment

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

typos:

Suggested change
panic!("Syscall Hint Len failed becasue the input stream is exhausted");
panic!("Syscall Hint Len failed because the input stream is exhausted");
++ b/patch-testing/keccak/src/lib.rs

@nhtyy nhtyy closed this Dec 13, 2024
Copy link

SP1 Performance Test Results

Branch: n/rsa-hook
Commit: afec9d7
Author: nhtyy

program cycles execute (mHz) core (kHZ) compress (KHz) time success
fibonacci 11291 0.16 0.31 0.24 48s
ssz-withdrawals 2757356 17.90 127.99 50.50 55s
tendermint 12593597 6.61 286.91 137.00 1m34s

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.

1 participant