Skip to content

perf: optimize the verifier pairing check#7

Merged
markosg04 merged 4 commits into
mainfrom
perf/optimize-final-pairing-check
Dec 9, 2025
Merged

perf: optimize the verifier pairing check#7
markosg04 merged 4 commits into
mainfrom
perf/optimize-final-pairing-check

Conversation

@markosg04
Copy link
Copy Markdown
Collaborator

@markosg04 markosg04 commented Dec 4, 2025

Dory verifier originally performs 6 total pairing checks. Using bilinearity and batching, we can eliminate 3 pairings entirely and combine the remaining 3 pairings into a single multi-pairing (which amortizes the final exp cost).

The full details of this adjusted protocol are well-documented in the code. Check out the diff for the full analysis.

@markosg04 markosg04 changed the title perf: optimize the verifier pairing check from 5 pairings to size 3 m… perf: optimize the verifier pairing check Dec 4, 2025
Copy link
Copy Markdown
Contributor

@quangvdao quangvdao left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for the detailed documentation.

@markosg04 markosg04 merged commit ff9b8fb into main Dec 9, 2025
5 checks passed
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