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!: split batches for verification #22

Merged
merged 4 commits into from
Dec 14, 2022

Conversation

AaronFeickert
Copy link
Contributor

@AaronFeickert AaronFeickert commented Dec 13, 2022

Splits batches during verification. Updates the API to require callers to specify a verification action.

Closes issue #21.

BREAKING CHANGE: Changes the verification API.

@AaronFeickert AaronFeickert marked this pull request as draft December 13, 2022 20:36
Copy link
Contributor

@hansieodendaal hansieodendaal left a comment

Choose a reason for hiding this comment

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

LGTM!

@hansieodendaal
Copy link
Contributor

ACK

Copy link
Contributor

@CjS77 CjS77 left a comment

Choose a reason for hiding this comment

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

Nice :)

@CjS77
Copy link
Contributor

CjS77 commented Dec 14, 2022

Tests should pass after #23 merges

@CjS77 CjS77 added the P-merge label Dec 14, 2022
@CjS77 CjS77 merged commit 531bae6 into tari-project:main Dec 14, 2022
@AaronFeickert AaronFeickert deleted the batch-splitting branch December 14, 2022 17:27
@AaronFeickert
Copy link
Contributor Author

Pinging @CjS77 @stringhandler etc. for a new tag, so we can use the new API elsewhere.

stringhandler pushed a commit to tari-project/tari-crypto that referenced this pull request Jan 4, 2023
stringhandler pushed a commit to tari-project/tari that referenced this pull request Jan 4, 2023
Description
---
Updates `tari-crypto` dependencies to use range proof batch splitting.

Motivation and Context
---
An [earlier PR](#5049) removed an unnecessary restriction on range proof batch splitting. Recent `bulletproofs-plus` work [updates range proof batching](tari-project/bulletproofs-plus#22) to split large batches for performance reasons, and also updates the verification API for clarity. A [corresponding PR](tari-project/tari-crypto#160) in `tari-crypto` uses this new API, but does not change its own external range proof verification API.

This PR updates `tari-crypto` dependencies to take advantage of this new functionality.

How Has This Been Tested?
---
Existing tests pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verifier should split large batches
3 participants