Skip to content

Conversation

hero78119
Copy link
Collaborator

@hero78119 hero78119 commented Aug 25, 2025

build on top of #1034 & #1035 & #1038

This PR fix keccak precompile e2e error, some previous left over.

@hero78119 hero78119 marked this pull request as draft August 25, 2025 15:41
@hero78119 hero78119 marked this pull request as ready for review August 26, 2025 14:11
@@ -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 =
Copy link
Collaborator Author

@hero78119 hero78119 Aug 26, 2025

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(
Copy link
Collaborator Author

@hero78119 hero78119 Aug 26, 2025

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

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