-
Notifications
You must be signed in to change notification settings - Fork 36
fix keccak precompile e2e #1036
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
base: master
Are you sure you want to change the base?
Conversation
9b7e271
to
8c312b1
Compare
@@ -215,9 +215,16 @@ impl<E: ExtensionField, PCS: PolynomialCommitmentScheme<E>> ZKVMVerifier<E, PCS> | |||
let input_opening_point = if circuit_vk.get_cs().is_opcode_circuit() { | |||
// getting the number of dummy padding item that we used in this opcode circuit | |||
let num_lks = circuit_vk.get_cs().num_lks(); | |||
let num_padded_instance = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to refresh dummy logic when there got rotation
@kunxian-xia @darth-cy recursion-verifier need to fix the respective logic as well
https://github.com/scroll-tech/ceno-recursion-verifier/blob/d7aac029fbd3acb8860af9bec3784e0790c6edc4/src/zkvm_verifier/verifier.rs#L237-L241
With that, keccak precompile should be e2e full pass
Change::new(state_ptr, state_ptr), | ||
0, // Cycle set later in finalize(). | ||
), | ||
WriteOp::new_register_op( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just to compatible with sp1 binary logic to assure x11 (a2) register are 0.
In Ceno this check seems unnecessary
build on top of #1034 & #1035 & #1038
This PR fix keccak precompile e2e error, some previous left over.