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

Implement word/next_inputs padding for keccak #338

Merged
merged 10 commits into from
Mar 10, 2022
Merged

Implement word/next_inputs padding for keccak #338

merged 10 commits into from
Mar 10, 2022

Conversation

CPerezz
Copy link
Member

@CPerezz CPerezz commented Feb 21, 2022

@github-actions github-actions bot added the crate-keccak Issues related to the keccak workspace member label Feb 21, 2022
In order to implement the padding and the full keccak circuit, the
circuit for the permutation as well as the gates have been moved to it's
own module `permutation` so that everything has a distinct
responsability and place.
This gadget constraints the build of a keccak permutation word from 8
bytes constraining the sum and also that all the bytes are in the range
[0..255]
Adds tests for the correct and expected error test-cases.

This concludes the work on #338
CPerezz added a commit that referenced this pull request Mar 10, 2022
Adds tests for the correct and expected error test-cases.

This concludes the work on #338
@CPerezz CPerezz marked this pull request as ready for review March 10, 2022 09:52
@CPerezz CPerezz changed the title [WIP] Implement word/next_inputs padding for keccak Implement word/next_inputs padding for keccak Mar 10, 2022
@CPerezz CPerezz requested review from therealyingtong, ChihChengLiang and miha-stopar and removed request for therealyingtong March 10, 2022 09:52
Copy link
Collaborator

@ChihChengLiang ChihChengLiang left a comment

Choose a reason for hiding this comment

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

LGTM, with some renaming suggestions.

keccak256/src/circuit/padding.rs Outdated Show resolved Hide resolved
@CPerezz CPerezz merged commit bfbc234 into main Mar 10, 2022
@CPerezz CPerezz deleted the keccak_padding branch March 10, 2022 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate-keccak Issues related to the keccak workspace member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Keccak word padding
2 participants