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

Update inverse app projection to work with ZK proofs #327

Merged
merged 1 commit into from
Mar 30, 2024

Conversation

SebastienGllmt
Copy link
Contributor

In the previous version of the inverse projection contract, there was no way to add custom validation logic for the mint. However, in the future, it's possible we have inverse projections where we can actually verify with a ZK proof that the mint is valid.

To make sure these two cases work with the same interface, I made the following changes:

  • Added a new _verificationData parameter to the mint function (which would contain the ZK verification data)
  • Added a validateMint function so you can easily inherent from our base contract to add your own ZK verification

Unrelated to this, I also added a currentNonce to the interface in case it's useful for frontends

@SebastienGllmt SebastienGllmt merged commit 85d83fa into master Mar 30, 2024
@SebastienGllmt SebastienGllmt deleted the app-projected-zk branch March 30, 2024 19:06
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