danisharora099 f430d67513
chore: condense generation and import signature
into one button

having two buttons:
- one for generating new credentials, then
registering on contract
- other for importing credentials that already
exist

removing two and only having one:
- generates credentials
- checks if pubKey matches in the smart contract
  - if exists, automatically hydrates
membershipId
  - if does not exist, enables action of
registering your new membershipId
2022-12-12 13:57:32 +05:30
..
2022-10-06 18:34:28 -04:00

Using RLN in JavaScript

Rate limiting nullifier (RLN) is a construct based on zero-knowledge proofs that provides an anonymous rate-limited signaling/messaging framework suitable for decentralized (and centralized) environments

Demonstrates:

  • RLN:
    • Generate credentials
    • Insert membership to smart contract (Goerli testnet)
    • Retrieve smart contract state
    • Generate and send proofs
    • Verify incoming proofs
  • Pure Javascript/HTML.
  • Use minified bundle of js from unpkg.com, no import, no package manager.

To test the example:

git clone https://github.com/waku-org/js-waku-examples
cd js-waku-examples/rln-js
npm install
npm run start
# open  http://127.0.0.1:8080 In your browser

There are a known issue using this webapp with Firefox + MetaMask. Try Chrome or Brave if you encounter any issue.

The master branch's HEAD is deployed at https://examples.waku.org/rln-js/.