Skip to content

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

Open
kunxian-xia wants to merge 18 commits intofeat/goldilocks-spartanfrom
kunming/poseidon_test
Open

[DON'T MERGE] diff for verifying poseidon permutations using COBBL stack#56
kunxian-xia wants to merge 18 commits intofeat/goldilocks-spartanfrom
kunming/poseidon_test

Conversation

@kunxian-xia
Copy link
Copy Markdown
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
Comment thread zok_tests/benchmarks/poseidon_test/poseidon_struct.zok
Comment thread zok_tests/benchmarks/poseidon_test/poseidon_struct.zok
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
Copy Markdown
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
Copy Markdown
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.

3 participants