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

Keccak test cases #82

Merged
merged 15 commits into from
Oct 5, 2021
Merged

Keccak test cases #82

merged 15 commits into from
Oct 5, 2021

Conversation

ChihChengLiang
Copy link
Collaborator

Problem

We need some intermediate values between keccak steps to build test cases.

Solution

Modify https://github.com/Follow-DeFi/keccak-rust to get a version of arithmetic keccak.

TODO

  • Add sponge part
  • Fix typings
  • extract intermediate values for test cases

@github-actions github-actions bot added the crate-keccak Issues related to the keccak workspace member label Oct 4, 2021
Copy link
Member

@CPerezz CPerezz left a comment

Choose a reason for hiding this comment

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

LGTM


pub const PERMUTATION: usize = 24;

pub static ROUND_CONSTANTS: [u64; PERMUTATION] = [
Copy link
Member

Choose a reason for hiding this comment

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

Can we add a link to the place where we extracted the constants from?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've added links to where the constants are from.

@ChihChengLiang
Copy link
Collaborator Author

Merged to unblock upcoming works. Feel free to give post merging review.

@ChihChengLiang ChihChengLiang merged commit 7a8b248 into main Oct 5, 2021
@CPerezz CPerezz deleted the keccak-test-cases branch October 24, 2021 08:49
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.

None yet

2 participants