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

feat: use the latest circuit v1 #41

Merged

Conversation

mhchia
Copy link
Member

@mhchia mhchia commented Mar 6, 2023

What's done?

Support the latest RLN circuit v1 (Rate-Limiting-Nullifier/rln-circuits@915c436).

  • Use externalNullifier over epoch and rlnIdentifier in a snark proof
  • Add a parameter in epoch to Cache.addProof since the proof itself only contains externalNullifier. We need to provide epoch additionally to check if the proof matches (epoch, rlnIdentifier). And thus the method becomes Cache.addProof(epoch, proof)
  • Remove genExternalNullifier in src/utils.ts since it's only used in the test as a epoch factory
  • Skip tests for waku compatibility (src/waku.ts) since they are using the old circuit, which is incompatible
  • Update README.md according to the changes

Fixes #42

`externalNullifier = h(epoch, rlnIdentifier)`
Even though we only need externalNullifier and the other public inputs
to verify a proof, we still need the original epoch and rlnIdentifier
to determine if it's valid for an app. And thus this commit makes
RLNFullProof contain the proof with public inputs, additionally,
`epoch` and `rlnIdentifier`.
@AtHeartEngineer AtHeartEngineer merged commit fbfd054 into Rate-Limiting-Nullifier:main Mar 14, 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.

Generation test Error: Signal not found.
2 participants