Skip to content

Commit

Permalink
docs: add comment about the current proof verification methods
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkrypto committed Sep 5, 2024
1 parent 845abb0 commit e23ad03
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/chain/src/runtime/modules/poll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ export class Poll extends RuntimeModule {
vote: Bool,
poolProof: PollProof
) {

/*
NOTE: This proof verification was based on private-airdrop-workshop repo, but it has
known vulnerabilities: https://github.com/proto-kit/private-airdrop-workshop
TODO: Implement a new proof validation method
*/

poolProof.verify();

const commitment = await this.commitments.get(pollId);
Expand Down

0 comments on commit e23ad03

Please sign in to comment.