Skip to content

Conversation

@adklempner
Copy link
Member

Description

When generating an external nullifier for RLN proofs, the epoch and rln identifier values need to be hashed using sha256 before being hashed via poseidon in order to ensure that the two values match the field element used by zerokit.

Changes

  • Hash the epoch and RLN identifier values using the sha256 wrapper when generating or extracting the external nullifier:
  1. when generating an RLN proof
  2. when validating an RLN proof
  3. when extracting metadata from an RLN proof
  • Remove the length-prefix when hashing using the sha256 wrapper

Issue

related to logos-messaging/js-waku#2746

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.

2 participants