2022-10-28 03:17:15 +00:00
|
|
|
# Using [RLN](https://rfc.vac.dev/spec/32/) 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
|
2022-09-26 00:41:30 +00:00
|
|
|
|
|
|
|
**Demonstrates**:
|
|
|
|
|
2022-10-28 03:17:15 +00:00
|
|
|
- RLN:
|
|
|
|
- Generate credentials
|
|
|
|
- Insert membership to smart contract (Goerli testnet)
|
|
|
|
- Retrieve smart contract state
|
|
|
|
- Generate and send proofs
|
|
|
|
- Verify incoming proofs
|
2023-11-20 16:00:11 +00:00
|
|
|
- Keystore
|
|
|
|
- Next.js framework
|
2022-09-26 00:41:30 +00:00
|
|
|
|
2023-11-20 16:00:11 +00:00
|
|
|
# Getting Started
|
2022-11-18 02:00:18 +00:00
|
|
|
|
|
|
|
```shell
|
|
|
|
git clone https://github.com/waku-org/js-waku-examples
|
2023-06-23 04:35:06 +00:00
|
|
|
cd js-waku-examples/examples/rln-js
|
2022-11-18 02:00:18 +00:00
|
|
|
npm install
|
2023-11-20 16:00:11 +00:00
|
|
|
npm run dev
|
|
|
|
# open http://127.0.0.1:3000 In your browser
|
2022-11-18 02:00:18 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
**There are a known issue using this webapp with Firefox + MetaMask. Try Chrome or Brave if you encounter any issue**.
|
2022-09-26 00:41:30 +00:00
|
|
|
|
2023-11-20 16:00:11 +00:00
|
|
|
The `master` branch's HEAD is deployed at https://examples.waku.org/rln-js/.
|