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: don't panic on inconsistent generators #100

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

AaronFeickert
Copy link
Contributor

@AaronFeickert AaronFeickert commented Oct 23, 2023

Currently, the prover will panic if the statement aggregation factor does not precisely correspond to that of the inner-product generators. It would be best to allow the prover to use a larger generator set, similarly to how the verifier operates, in order to be more flexible. This PR adds such a fix, and includes a regression test.

Review of this PR should include asserting that removing the fix code will fail the regression test.

Closes #99.

@AaronFeickert AaronFeickert changed the title fix: panic on inconsistent generators fix: don't panic on inconsistent generators Oct 23, 2023
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.

Nice one

ACK

@SWvheerden SWvheerden merged commit 1f5c8a0 into tari-project:main Oct 25, 2023
9 checks passed
@AaronFeickert AaronFeickert deleted the prover-generator-fix branch October 25, 2023 17:52
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.

Prover can panic on inconsistent input data
4 participants