js-waku-examples/examples/rln-js
Sasha ada52500d3
chore!: update rln-js (#225)
* change block number

* use RLNContract

* move to module, refactor

* align

* udpate waku versions

* fix libp2p issue

* change block number

* fix small issues, bump rln-js version

* use registerFromMembership api

* disable retrieve button when fetching members

* ignore mac file

* use latest @waku/rln
2023-04-28 01:33:25 +02:00
..
README.md move examples to dedicated folder, update create app and ci accordingly 2022-12-22 21:37:55 +01:00
favicon.ico merge with master 2023-01-04 21:41:13 +01:00
favicon.png improve manifest and add background to png image 2023-01-11 23:04:42 +01:00
index.html chore!: update rln-js (#225) 2023-04-28 01:33:25 +02:00
index.js chore!: update rln-js (#225) 2023-04-28 01:33:25 +02:00
manifest.json improve manifest and add background to png image 2023-01-11 23:04:42 +01:00
package-lock.json merge with master 2023-01-04 21:57:56 +01:00
package.json move examples to dedicated folder, update create app and ci accordingly 2022-12-22 21:37:55 +01:00
style.css move examples to dedicated folder, update create app and ci accordingly 2022-12-22 21:37:55 +01:00

README.md

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/.