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

feat: Customizable static verifier public values handler #1226

Merged
merged 15 commits into from
Jan 21, 2025

Conversation

ytham
Copy link
Contributor

@ytham ytham commented Jan 17, 2025

Adds a way to optionally customize the static verifier's public values handler

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@ytham ytham marked this pull request as draft January 17, 2025 23:55

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@ytham ytham marked this pull request as ready for review January 18, 2025 05:32
@jonathanpwang
Copy link
Contributor

@nyunyunyunyu please review

@jonathanpwang jonathanpwang removed their request for review January 19, 2025 17:39
@nyunyunyunyu
Copy link
Contributor

@nyunyunyunyu please review

kk

Copy link
Contributor

@nyunyunyunyu nyunyunyunyu left a comment

Choose a reason for hiding this comment

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

Can we have a test case?

@@ -127,8 +127,7 @@ impl Halo2WrapperProvingKey {
);
assert_eq!(
self.pinning.metadata.num_pvs[0],
// 12 is the number of public values for the accumulator
snark_to_verify.instances[0].len() + 12
snark_to_verify.instances[0].len() + 12,
Copy link
Contributor

Choose a reason for hiding this comment

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

why delete this comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry, i had added and removed something and the comment went with it. will restore the comment

crates/sdk/src/static_verifier/mod.rs Show resolved Hide resolved
@ytham
Copy link
Contributor Author

ytham commented Jan 20, 2025

Can we have a test case?

yes, will add one

This comment has been minimized.

Copy link

group app.proof_time_ms app.cycles app.cells_used leaf.proof_time_ms leaf.cycles leaf.cells_used
verify_fibair (+116 [+3.4%]) 3,507 711,495 25,513,055 - - -
fibonacci_program 6,071 1,500,137 51,505,102 - - -
regex_program (+28 [+0.1%]) 18,917 4,190,904 165,028,173 - - -
ecrecover_program (+19 [+0.7%]) 2,643 285,401 15,092,297 - - -

Commit: 846d202

Benchmark Workflow

@ytham
Copy link
Contributor Author

ytham commented Jan 20, 2025

@ytham ytham merged commit 6e27656 into main Jan 21, 2025
19 checks passed
@ytham ytham deleted the feat/custom_static_verifier branch January 21, 2025 15:07
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.

3 participants