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

Remove keccak256 crate and migrate keccak plain to eth-types #1440

Merged
merged 6 commits into from
May 31, 2023

Conversation

ChihChengLiang
Copy link
Collaborator

Description

  • We remove the keccak256 crate.
  • We migrate the keccak256 plain implementation to the eth-types crate.

As we migrate keccak circuit to the zkevm-crate, most of the functions left in keccak256 crate are unused except of the plain keccak hash implementation.

Most of the crates in the codebase depend on keccak256 crate because they use the plain keccak hash. The plain keccak hash is only 300 lines big. It would be beneficial to keep a plain implementation for people to audit the optimized keccak circuit.

Type of change

Bug fix (non-breaking change which fixes an issue)

@github-actions github-actions bot added crate-bus-mapping Issues related to the bus-mapping workspace member crate-circuit-benchmarks Issues related to the circuit-benchmarks workspace member crate-eth-types Issues related to the eth-types workspace member crate-keccak Issues related to the keccak workspace member crate-zkevm-circuits Issues related to the zkevm-circuits workspace member T-bench Type: benchmark improvements labels May 30, 2023
@github-actions github-actions bot added the CI Issues related to the Continuous Integration mechanisms of the repository. label May 30, 2023
Copy link
Member

@ed255 ed255 left a comment

Choose a reason for hiding this comment

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

LGTM! What a clean up!

@adria0 adria0 self-requested a review May 31, 2023 11:49
Copy link
Member

@adria0 adria0 left a comment

Choose a reason for hiding this comment

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

LGTM!

@ChihChengLiang ChihChengLiang added this pull request to the merge queue May 31, 2023
Merged via the queue into main with commit 73b2aeb May 31, 2023
@ChihChengLiang ChihChengLiang deleted the rm-keccak branch May 31, 2023 13:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI Issues related to the Continuous Integration mechanisms of the repository. crate-bus-mapping Issues related to the bus-mapping workspace member crate-circuit-benchmarks Issues related to the circuit-benchmarks workspace member crate-eth-types Issues related to the eth-types workspace member crate-keccak Issues related to the keccak workspace member crate-zkevm-circuits Issues related to the zkevm-circuits workspace member T-bench Type: benchmark improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants