Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Add keccak circuit to LightClientCircuit #1620

Merged
merged 4 commits into from
Sep 28, 2023
Merged

Add keccak circuit to LightClientCircuit #1620

merged 4 commits into from
Sep 28, 2023

Conversation

ed255
Copy link
Member

@ed255 ed255 commented Sep 21, 2023

Description

Add KeccakCircuit to the LightClientCircuit

Issue Link

Resolve #1619

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Contents

The current LightClient was verifying MPT proofs but the keccak hashes were not being verified, as only the Keccak Table was present but not the KeccackCircuit. This PR introduces the KeccakCircuit so that the contents of the KeccakTable are verified.

Note that some changes in this PR come from formatting the Rust code, so they are just code format adjustments.

How Has This Been Tested?

This hasn't been tested yet. Two results are missing:

  1. Make sure the keccak constraints pass
  2. Compare the real prover timing results with the previous experiments (where the KeccakCircuit was missing)

@ed255 ed255 marked this pull request as draft September 21, 2023 15:39
@github-actions github-actions bot added the crate-zkevm-circuits Issues related to the zkevm-circuits workspace member label Sep 27, 2023
@adria0 adria0 merged commit 0e7a383 into zklight Sep 28, 2023
11 checks passed
@adria0 adria0 deleted the zklight-keccak branch September 28, 2023 09:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crate-zkevm-circuits Issues related to the zkevm-circuits workspace member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants