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

feat: batch verification #24

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Conversation

AaronFeickert
Copy link
Collaborator

@AaronFeickert AaronFeickert commented Jan 8, 2024

This PR adds batch verification functionality, where multiple proofs sharing a common input set can be efficiently verified together. This is done internally by adding a new Proof::verify_batch that accepts statement and proof slices, checks their consistency, and then goes to work. To keep the API cleaner, the existing verify functionality becomes a trivial wrapper. This doesn't result in any efficiency hit for the single-proof case, but provides significant benefits for nontrivial batching.

It also adds a simple test and benchmarks.

Closes #21.

@AaronFeickert AaronFeickert merged commit e1ed663 into tari-project:main Jan 8, 2024
5 checks passed
@AaronFeickert AaronFeickert deleted the batching branch January 8, 2024 19:38
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.

Add batch verification
1 participant