This repository was archived by the owner on Jul 5, 2024. It is now read-only.
[WIP] Keccak circuit final assembly#542
Closed
CPerezz wants to merge 29 commits into
Closed
Conversation
e5723db to
a66b2e4
Compare
2fa5c70 to
8136cd4
Compare
Contributor
Author
|
This currently adds all of the "costly" stuff into the circuit. The things missing now are copy constraints into the lookup table. But nothing regarding RLCs or permutation which are the really expensive ones. Once we analyze the benchmark results, we will be able to see which is the solution we should invest time into finish, polish etc.. |
On this way we can collect all the expr-related functions and re-use them cross-crates.
Since the padding of the `next_inputs` is given in base-2, `AbsorbConfig` has been refactored to get the `next_inputs` as `AssignedCells` as well as performing the base conversion `2->9` inside.
We need to perform RLC in order to be able to check that the permutations are executed correctly inside keccak. This config will enable that possibility for us. This is the last step before integrating together all the keccak pieces and connect them via RLC.
In order to construct witness data for the hash message, we need to be able to split the entire hash into each permutation member to have a better control over it's assignation in the circuit. This is a starting point to solve the issue.
0266873 to
c38d296
Compare
Since the RLC result is now returned by the assignation fn, it needs to be constrained outside in the testing config with a specific gate for it.
Collaborator
|
I think this is outdated. Thank you @CPerezz for working on this one. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.