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

bench: verifying N poseidon permutation over goldilocks field using spartan_parallel #48

Open
kunxian-xia opened this issue Dec 2, 2024 · 3 comments

Comments

@kunxian-xia
Copy link
Collaborator

No description provided.

@kunxian-xia kunxian-xia changed the title bench: verifying 1M poseidon hashes over goldilocks field using spartan bench: verifying 1M poseidon hashes over goldilocks field using spartan_parallel Dec 3, 2024
@kunxian-xia kunxian-xia changed the title bench: verifying 1M poseidon hashes over goldilocks field using spartan_parallel bench: verifying 1M poseidon permutation over goldilocks field using spartan_parallel Dec 4, 2024
@kunxian-xia
Copy link
Collaborator Author

kunxian-xia commented Dec 4, 2024

The output of this issue will fill the missing numbers in this table.

proof system #(permutations) recursion proof size proving time recursion proof verification time
SP1 poseidon2 chip with deg = 3 2^20 501305 (489KB) 327s tbd
SP1 poseidon2 chip with deg = 9 2^20 487397 (476KB) 223s tbd
SP1 poseidon2 chip with deg = 3 2^17 421385 (411KB) 41s tbd
SP1 poseidon2 chip with deg = 9 2^17 407477 (398KB) 28s tbd
spartan-parallel

Notes

  1. poseidon2 chip with deg = 3 in SP1: uses 313 columns and 49 preprocessed columns.
  2. poseidon2 chip with deg = 9 in SP1: uses 172 columns and 49 preprocessed columns.

@kunxian-xia
Copy link
Collaborator Author

kunxian-xia/sp1#7

@kunxian-xia kunxian-xia changed the title bench: verifying 1M poseidon permutation over goldilocks field using spartan_parallel bench: verifying 2^20 poseidon permutation over goldilocks field using spartan_parallel Dec 11, 2024
@kunxian-xia
Copy link
Collaborator Author

According to @Jiangkm3, to verify 2^17 poseidon permutations using spartan-parallel.

  • The spartan proof (without mpcs opening proof) size is around 32KB.
  • And the witness assignment's MLE has 27 variables.

And according to @yczhangsjtu, the WHIR opening proof for MLE with 27 variables has 113KB.

However, we cannot get the proving time based on current impl because most of the routines in spartan-parallel are single threaded right now. We need to resolve #55 first.

@kunxian-xia kunxian-xia changed the title bench: verifying 2^20 poseidon permutation over goldilocks field using spartan_parallel bench: verifying N poseidon permutation over goldilocks field using spartan_parallel Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

2 participants