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

final changes to circuits #4371

Merged
merged 4 commits into from
May 13, 2024
Merged

final changes to circuits #4371

merged 4 commits into from
May 13, 2024

Conversation

redshiftzero
Copy link
Contributor

@redshiftzero redshiftzero commented May 9, 2024

Describe your changes

Makes suggested changes to the circuits prior to a final audit

Issue ticket number and link

Closes #4280

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

This ensures that in no circuit is it ever allowed that the
`ak` is the identity element.

Previously, we were separately checking the `ak` is not identity
in each of the three places we were using it: `SwapClaimCircuit`,
`SpendCircuit`, and `DelegatorVoteCircuit`
We use `AddressVar` in five circuits:

* `SwapClaimCircuit` and `SwapCircuit` via the `SwapPlaintextVar` claim address
* `DelegatorVoteCircuit`, `SpendCircuit`, `OutputCircuit` via the `NoteVar`

In all cases we were doing the diversified base identity check in
the circuit already, _except_ for the `SwapCircuit`, since when we
go to claim the swap, we were checking the diversified base there.
@redshiftzero redshiftzero changed the title wip: final changes to circuits final changes to circuits May 13, 2024
@redshiftzero redshiftzero marked this pull request as ready for review May 13, 2024 04:07
@redshiftzero redshiftzero added the consensus-breaking breaking change to execution of on-chain data label May 13, 2024
@redshiftzero redshiftzero requested a review from cronokirby May 13, 2024 04:12
@redshiftzero redshiftzero merged commit 0c98304 into main May 13, 2024
13 checks passed
@redshiftzero redshiftzero deleted the zk-circuit-staging branch May 13, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consensus-breaking breaking change to execution of on-chain data
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

final circuit changes
2 participants