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

Rotation - Adds input encoding in Solidity and compatibility tests #24

Merged
merged 11 commits into from
Oct 23, 2023

Conversation

willemolding
Copy link
Collaborator

@willemolding willemolding commented Oct 11, 2023

  • Adds a new test for ensuring the input encoding matches between Rust and Solidity for the rotation circuit
  • Adds presumed missing line to instance encoding so the finalized_block_ssz is included
  • Adds Solidity function to perform the encoding from inputs

@willemolding willemolding marked this pull request as draft October 11, 2023 03:13
@willemolding willemolding requested a review from ec2 October 11, 2023 03:13
@ec2
Copy link
Member

ec2 commented Oct 11, 2023

Also just did a reverse on the bytes of the pubkeys because of a difference of endieness between bls library and witness data. Previously had to do it for the step circuit witness as well.

lightclient-circuits/tests/step.rs Outdated Show resolved Hide resolved
lightclient-circuits/tests/step.rs Outdated Show resolved Hide resolved
@willemolding willemolding marked this pull request as ready for review October 13, 2023 04:35
@willemolding willemolding requested a review from ec2 October 13, 2023 04:35
@willemolding willemolding self-assigned this Oct 13, 2023
contracts/src/RotateLib.sol Outdated Show resolved Hide resolved
contracts/test/RotateExternal.sol Outdated Show resolved Hide resolved
@nulltea nulltea merged commit bfab59a into main Oct 23, 2023
1 check failed
@nulltea nulltea deleted the willem/rotate-input-encoder-solidity branch October 23, 2023 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants