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

post-audit circuit fixes part 1 #2911

Merged
merged 20 commits into from
Aug 10, 2023
Merged

post-audit circuit fixes part 1 #2911

merged 20 commits into from
Aug 10, 2023

Conversation

redshiftzero
Copy link
Member

@redshiftzero redshiftzero commented Aug 9, 2023

Followup fixes to the circuits from the NCC audit

@redshiftzero redshiftzero temporarily deployed to smoke-test August 9, 2023 17:05 — with GitHub Actions Inactive
@redshiftzero redshiftzero changed the title post-audit circuit fixes wip: post-audit circuit fixes Aug 9, 2023
For tests that involve invalid proof inputs, there are two ways
they can fail based on whether we are in release and debug mode.

In debug mode, there is upstream in ark-groth16 an assertion
that the circuit is satisifed prior to returning the proof. For
invalid inputs, the tests will panic at the proving stage.

In release mode, the proof will be constructed, but since it was
generated with invalid inputs, it will not verify. In that case,
we must panic if the return value of the verification method
was `false`, which corresponds to the expected behavior for tests
that operate on invalid inputs.
@redshiftzero redshiftzero temporarily deployed to smoke-test August 9, 2023 18:55 — with GitHub Actions Inactive
We should build in the docs the primary version that we are using
in the penumbra monorepo. The only reason a different version (0.4.0)
of decaf377 is being pulled in to cause ambiguity, is that frost377
is used in several places as a dev dependency only.
@redshiftzero redshiftzero temporarily deployed to smoke-test August 9, 2023 20:45 — with GitHub Actions Inactive
@redshiftzero redshiftzero changed the title wip: post-audit circuit fixes post-audit circuit fixes Aug 9, 2023
@redshiftzero redshiftzero merged commit a826986 into main Aug 10, 2023
@redshiftzero redshiftzero deleted the audit-fixes-circuits-1 branch August 10, 2023 14:57
@redshiftzero redshiftzero changed the title post-audit circuit fixes post-audit circuit fixes part 1 Aug 10, 2023
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.

1 participant