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

fix: remove extra range proof verifications #6190

Merged

Conversation

AaronFeickert
Copy link
Collaborator

Description

Removes extra range proof verifications that are done if batch verification fails.

Motivation and Context

If a batch of range proofs fails verification, each proof is checked separately until an invalid proof is found; this is reported for debugging purposes, but is otherwise not used.

This is inefficient and can lead to denial of service.

Until (or unless) #6167 is implemented to provide a more efficient method of identifying an invalid proof, this PR removes the unused extra verification operations.

How Has This Been Tested?

Existing tests pass.

What process can a PR reviewer use to test or verify this change?

Confirm that the existing verification operations were unused (except for debugging purposes), and that batch verification continues to work as expected.

@AaronFeickert AaronFeickert requested a review from a team as a code owner March 6, 2024 19:54
Copy link

github-actions bot commented Mar 6, 2024

Test Results (CI)

    3 files    120 suites   35m 53s ⏱️
1 268 tests 1 268 ✅ 0 💤 0 ❌
3 796 runs  3 796 ✅ 0 💤 0 ❌

Results for commit 1def6c9.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Mar 6, 2024
Copy link

github-actions bot commented Mar 6, 2024

Test Results (Integration tests)

29 tests   29 ✅  11m 49s ⏱️
11 suites   0 💤
 2 files     0 ❌

Results for commit 1def6c9.

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Mar 7, 2024
@SWvheerden SWvheerden merged commit 57330bf into tari-project:development Mar 7, 2024
15 of 16 checks passed
@AaronFeickert AaronFeickert deleted the range-proof-batch-failure branch March 7, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants