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: verifier overflow checks #62

Merged
merged 2 commits into from Sep 20, 2023

Conversation

AaronFeickert
Copy link
Contributor

@AaronFeickert AaronFeickert commented Aug 10, 2023

Checks for overflows in the range verifier.

Since type exceptions for the lint mentioned in #60 don't seem to work with the Ristretto types, this needs to either be checked manually or by temporarily enabling that lint and ignoring the deluge of Ristretto false positives (operations on those types are not subject to overflow/underflow).

Also does minor cleanup by moving some operations to iterators.

Closes #60.

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.

Looks good

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.

New insights from the tari project audit:

src/range_proof.rs Outdated Show resolved Hide resolved
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.

ACK

Copy link
Contributor

@SWvheerden SWvheerden left a comment

Choose a reason for hiding this comment

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

Just a question about more potential overflows

src/range_proof.rs Show resolved Hide resolved
src/range_proof.rs Show resolved Hide resolved
@SWvheerden SWvheerden merged commit e71a275 into tari-project:main Sep 20, 2023
6 checks passed
@AaronFeickert AaronFeickert deleted the overflow-checks branch September 20, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable arithmetic side-effect lint
4 participants