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

optimization: build a circuit to verify multiple sampling on multiple blobs #20

Closed
qizhou opened this issue Aug 25, 2023 · 3 comments
Closed

Comments

@qizhou
Copy link
Contributor

qizhou commented Aug 25, 2023

Currently, we have a circuit to verify a simple from a single blob. If we want to verify multiple samples in a check, we have to call the blob encoder verifier numerous times, which is costly. A simple way may implement a circuit to verify multiple samples with multiple blob encoder circuits

@qzhodl qzhodl modified the milestone: Devnet-3 Dec 15, 2023
@qzhodl
Copy link
Contributor

qzhodl commented Dec 20, 2023

Two verifyDecoding call gas cost with the current circuit: 2 * 221128 = 442,256
One verifyDecoding call gas cost with the new circuit: 212,967

Proof tx gas cost now: 681,465
Total saving gas: 229,289 which is 33% of the proof tx gas

@qzhodl
Copy link
Contributor

qzhodl commented Jan 5, 2024

#47 fixed it. @syntrust could you please share the gas comparison between the new and old circuit?

@syntrust
Copy link
Contributor

syntrust commented Jan 6, 2024

#47 fixed it. @syntrust could you please share the gas comparison between the new and old circuit?

Circuit Gas
old 572,610
new 372,882
saved 34.9%

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

No branches or pull requests

3 participants