|
| 1 | +# Harden RLN Testnet Deployment |
| 2 | + |
| 3 | +**Estimated date of completion**: 30 Sep 2025 |
| 4 | + |
| 5 | +**Resources Required for 2025H2**: |
| 6 | +- 1 js-waku dev for 4 weeks. |
| 7 | +- 1 core researcher for 6 weeks. |
| 8 | + |
| 9 | +The recent deployment and dogfooding of the [new RLN smart contract](https://github.com/waku-org/pm/milestone/34) on Linea Sepolia has unveiled several issues: |
| 10 | + |
| 11 | +- Attempt to use a JavaScript RLN library in https://rln.waku.org for credential generation led to interop issue with nwaku/zerokit |
| 12 | +- Some zerokit quirk around endianness that is different from Web3 RPC practice |
| 13 | +- Spamming of the contract due to "free mint" of the Sepolia ERC-20 token (representing DAI for test purposes) |
| 14 | + |
| 15 | +With this milestone, we tackle the lesson learned from dogfooding by: |
| 16 | + |
| 17 | +- Using zerokit in the browser, and working with Vac-ACZ team to reach adequate UX |
| 18 | +- Apply restrictions on testnet contract to allow dogfooding, without exhausting the rate limit due to the fact that testnet is free (as in cheap). |
| 19 | + |
| 20 | +## Strategic Objective |
| 21 | + |
| 22 | +Logos Vision: Core Values Alignment |
| 23 | + |
| 24 | +## FURPS |
| 25 | + |
| 26 | +- [RLN Membership Management](/FURPS/application/rln_membership_management.md): R1 |
| 27 | + |
| 28 | +## Risks |
| 29 | + |
| 30 | +| Risk | (Accept, Own, Mitigation) | |
| 31 | +|------------------------|------------------------------------------------------------------------------------------------------------------| |
| 32 | +| Smart contract Changes | Iterative delivery of smart contract changes to allow dogfooding without excessive smart contract logic | |
| 33 | +| Zerokit | Close collaboration with Vac-ACZ and clear expression of [requirements](https://github.com/waku-org/pm/pull/329) | |
| 34 | + |
| 35 | +## Deliverables |
| 36 | + |
| 37 | +### Zerokit is used in the Browser for Credentials Management |
| 38 | + |
| 39 | +**Owner**: js-waku |
| 40 | + |
| 41 | +**Feature**: [RLN Membership Management](/FURPS/application/rln_membership_management.md) |
| 42 | + |
| 43 | +**FURPS**: |
| 44 | +- R1. Import and exports are interoperable across all implementations. |
| 45 | + |
| 46 | +**Checklist**: |
| 47 | +- [ ] Specs: link to specs and/or API definition |
| 48 | +- [ ] Code: link to GitHub issues/PRs/Epic |
| 49 | +- [ ] Dogfood: link to dogfooding session/artefact |
| 50 | +- [ ] Docs: links to README.md or docs.waku.org (TBD) |
| 51 | + |
| 52 | +### Minting of (Sepolia) ERC-20 Tokens for RLN Deposits is permissioned |
| 53 | + |
| 54 | +**Owner**: core research |
| 55 | + |
| 56 | +**Feature**: [ERC-20 Testnet Token for RLN Deposit](/FURPS/application/erc-20_testnet_token_for_rln_deposit.md) |
| 57 | + |
| 58 | +**FURPS**: |
| 59 | +- F1. Contract owner can mint tokens to any address for free. |
| 60 | +- F2. White-listed wallet addresses can mint tokens to any address for free. |
| 61 | +- F3. Contract owner can add or remove wallet addresses to the white-list. |
| 62 | +- F4. Eth (Sepolia) is burnt to mint tokens to any address. |
| 63 | + |
| 64 | +- U1. Token name is `TST`. |
| 65 | + |
| 66 | +- +1. Deployed on Linea Sepolia. |
| 67 | +- +2. Used as ERC-20 deposit token for Linea Sepolia RLN smart contract deployment. |
| 68 | + |
| 69 | +**Feature**: [RLN Smart Contract](/FURPS/core/rln_smart_contract.md) |
| 70 | + |
| 71 | +- P2. Rate limit variables, in combination with good defaults on software side, enable around 5,000 registrations. |
| 72 | + |
| 73 | +**Checklist**: |
| 74 | +- [ ] Specs: link to specs and/or API definition |
| 75 | +- [ ] Code: link to GitHub issues/PRs/Epic |
| 76 | +- [ ] Dogfood: link to dogfooding session/artefact |
| 77 | +- [ ] Docs: links to README.md or docs.waku.org (TBD) |
| 78 | +- |
| 79 | +### Minting of (Sepolia) ERC-20 Tokens for RLN Deposits Burns Sepolia Eth |
| 80 | + |
| 81 | +**Owner**: core research |
| 82 | + |
| 83 | +**Feature**: [ERC-20 Testnet Token for RLN Deposit](/FURPS/application/erc-20_testnet_token_for_rln_deposit.md) |
| 84 | + |
| 85 | +**FURPS**: |
| 86 | +- F3. Eth (Sepolia) is burnt to mint tokens to any address. |
| 87 | + |
| 88 | +- U2. Usage of Metamask Faucet (usually 0.1 Linea Sepolia Eth) should enable enough `TST` token minting to acquire 2-3 RLN memberships. |
| 89 | + |
| 90 | +- +1. Deployed on Linea Sepolia. |
| 91 | +- +2. Used as ERC-20 deposit token for Linea Sepolia RLN smart contract deployment. |
| 92 | + |
| 93 | +**Checklist**: |
| 94 | +- [ ] Specs: link to specs and/or API definition |
| 95 | +- [ ] Code: link to GitHub issues/PRs/Epic |
| 96 | +- [ ] Dogfood: link to dogfooding session/artefact |
| 97 | +- [ ] Docs: links to README.md or docs.waku.org (TBD) |
0 commit comments