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

[DON'T MERGE] diff for verifying poseidon permutations using COBBL stack #56

Open
wants to merge 18 commits into
base: feat/goldilocks-spartan
Choose a base branch
from

Conversation

kunxian-xia
Copy link
Collaborator

No description provided.

@kunxian-xia kunxian-xia changed the title [DON'T MERGE] diff for verifying poseidon permutations using cobbl stack [DON'T MERGE] diff for verifying poseidon permutations using COBBL stack Dec 12, 2024
field new_state10 = state10 ** 7
field new_state11 = state11 ** 7
// mix
state0 = new_state0 * md0+ new_state0 * mc0+ new_state1 * mc1+ new_state2 * mc2+ new_state3 * mc3+ new_state4 * mc4+ new_state5 * mc5+ new_state6 * mc6+ new_state7 * mc7+ new_state8 * mc8+ new_state9 * mc9+ new_state10 * mc10+ new_state11 * mc11
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Does this get compiled to 1 row in R1CS?

state10 = state10 + c10
state11 = state11 + c11
// sbox
field new_state0 = state0 ** 7
Copy link
Collaborator Author

@kunxian-xia kunxian-xia Dec 12, 2024

Choose a reason for hiding this comment

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

Does this get compiled to 4 constraints in R1CS? @Jiangkm3

x2 = x*x
x4 = x2*x2
x3 = x*x2
x7 = x3*x4

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.

2 participants