Running an RLN membership on the LEZ testnet — re-verification & what changed
As of 2026-11-09. A re-run of the earlier guide
(rln-membership-lez-testnet, verified 2026-10-20)
against today's testnet, on a clean isolated logosctl session. Every number below was observed live and the membership was funded and registered end to end.
- delivery_module is now 0.3.3, not 0.4.0. 0.4.0 has been removed from the catalog; install 0.3.3. RLN modules are unchanged (0.12.0 / 5.1.0).
- Registry ambiguity. The membership registers active on
fd322d32…(the registry the earlier guide listed), but a node's early state can report a second registry841312e9…before it settles. Which one is canonical needs a word from the delivery team. - Cost confirmed: registration spent 74,244,720 units (fund ~250M; ~175.7M stays on the payer). Unchanged from the guide's ~74.2M.
1. What was run
A fresh, isolated session (its own LOGOSCTL_CONFIG_DIR), logosctl 0.3.1, official catalog. Nothing else on the machine was touched.
daemon start -d
package install -y delivery_module liblogos_rln_module # pulls liblogos_lez_rln_module + libp2p_module
module load liblogos_rln_module # before createNode
module load libp2p_module
module load delivery_module
call delivery_module createNode '{"preset":"logos.test","mode":"Core"}'
call delivery_module start
# ~3 min later: the LEZ-RLN wallet opens and derives a payer account
call liblogos_lez_rln_module wallet_status # -> { "payer": "a42063…", "ready": true }
# fund the payer on testnet, then it self-registers:
call liblogos_rln_module get_membership_state <registryId> <rlnIdentifier> # -> "active"
2. What changed since the 2026-10-20 guide
| Topic | Guide (2026-10-20) | Now (2026-11-09) |
|---|---|---|
| delivery_module | 0.4.0 ("same code as re-released 0.3.3") | 0.3.3 is the catalog head; 0.4.0 removed from the catalog (the logos-delivery-module#169 cleanup landed — that issue is now "Withdrawn v0.4.0 is still in the modules catalog"). Install 0.3.3. |
| RLN modules | liblogos_rln_module 0.12.0, liblogos_lez_rln_module 5.1.0 | Unchanged — still current. |
| Registry | logos:testnet:fd322d32…7775b971 | Membership goes active on fd322d32… (so the guide's value is correct), but the node's early rlnState reported a second registry logos:testnet:841312e9…c20c893 before settling. See §5. |
| Realised cost | ~74.2M (price 1M + ~73.2M gas @ base fee 8); asks 182.8M min / 250M suggested | Measured 74,244,720 exactly. Funded 250M → 175,755,280 left. base fee still 8. |
| Rate limit / epoch | 100 msgs / 600 s | Unchanged — rate_limit 100, epoch 600 s. |
| Flow & model | derive payer → fund → auto-register; keystore not copyable | Unchanged and verified end to end. Correction: the keystore is per RLN-module instance (one membership can be shared by other modules in the same core instance), not per delivery node (Arseniy, AnonComms, Nov 4). |
3. The verified run (real output)
Payer derived ~3 minutes after start (it reports "opening the wallet" until then):
wallet_status -> { "network":"testnet", "payer":"a42063358de5fb05d5cfe868ca42599e66ec59ccf768aae2294ea68b6b19ea86",
"ready":true, "state":"ready" }
# base58: C3gWMdn8L9VKUiMcpGwPcauAej2hJKztF7FwZRucv4r9
get_native_balance(payer) -> balance "0"
After funding 250,000,000 on testnet.lez.logos.co, the node auto-registered and the membership went active:
get_membership_state(fd322d32…, 5e269b6a…) ->
{ "state":"active", "leaf_index":18, "rate_limit":100,
"membership_hash":"440c289ceb09121cadf1f94496e9aa65611ed10ec7d1eb532cb38717eae4facf",
"registry_id":"logos:testnet:fd322d32a46ddf57eece9db8d68e9b722262d1f770760fca63b8cb9e7775b971" }
get_native_balance(payer) -> balance "175755280" # spent 250,000,000 - 175,755,280 = 74,244,720
4. Cost
| Native units | What | |
|---|---|---|
| Funded | 250,000,000 | suggested amount |
| Spent registering | 74,244,720 | 1,000,000 price + ~73.2M gas at base fee 8 |
| Left on payer | 175,755,280 | stays there — the module has no transfer-out |
So fund the full suggested amount and expect ~70% to sit unused on the payer. The minimum is ~182.8M (price + fee reserve); the reserve is an upper bound and only ~40% is used at today's base fee.
5. The registry ambiguity (new — worth a delivery-team answer)
rlnState reported registry logos:testnet:841312e9…c20c893 (the same one seen in an independent Nov-6 probe), then settled on fd322d32… where the registration actually went active. So two testnet RLN registries are in play, and which one a node binds to depends on sync timing.
Why it matters: a node can register on / report one registry while an application binds the other — which looks exactly like a silent "no membership" (the send API returns success, but nothing propagates). Open question: which registry is canonical, and why do nodes see both? (A today-problem only — the registry ID changes anyway in v0.5 when the membership tree moves to the separate RLN Zone; see §7.)
6. RLN enforcement on the testnet today
Two layers — both true at once:
- Client send-gate: ON. With no membership, a send fails locally ("no usable RLN membership"); the message never propagates.
- Network validation: off. The
logos.testpreset has run withenableValidation=false, so proofs aren't validated network-side, and a localLOGOS_DELIVERY_RLN_PRESETS {"logos.test":{"enabled":false}}override bypasses the client gate.logos.devhas RLN fully off.
So a developer can build without a membership — on logos.dev, or with the RLN-off override on logos.test — while the default testnet path requires one.
7. Roadmap caveat
The fund-the-payer model documented here is correct for today but transitional. Per the AnonComms team (Hanno, Arseniy, Igor, bkomuves — Nov 4–5 2026), the committed direction is:
- Validation turns on no earlier than v0.4 (Igor: it was going to be a v0.3.x patch, but the testnet wipe + the fact that getting a membership is still not simple pushed it out; possibly later than v0.4.0 given more breaking changes expected with LEZ/RLN-zone). Until then, publishing without a proof is a workaround, not a path to rely on — devs are expected to get memberships now so their messages aren't dropped the day validation flips on.
- Allocation protocol / allocator lands in v0.4, for both Delivery and Mix memberships — so LEZ funds aren't needed to register.
- Membership tree moves to a separate RLN Zone on Logos Blockchain in v0.5; LEZ keeps only the accounting part. The zone is cheaper (Merkle updates on a normal CPU instead of the very expensive Poseidon hashing on the LEZ VM, which is what caps the tree depth today) and more limited in scope. This changes the registry ID, but with an allocator most apps won't need to know the on-chain specifics. RFC:
logos-co/logos-rln-membership-zone. - Keycard path (the August demo) does not store the membership on the card — it uses the keycard certificate as a proof-of-uniqueness to claim a membership via the allocation protocol (Arseniy).
So: build the shared "RLN status" affordance, but treat the self-funding step as temporary.
8. Proposed UX improvements
The funding model is the part that confuses people (it confused us), so it's worth stating plainly and proposing a better shape.
How it works today
The RLN module creates a brand-new, dedicated, empty wallet on the node and derives a single-purpose payer account in it. You then have to discover that address and send funds to it; the node spends from it to register. It is not "bring your own funded wallet" — it's "the node invents an account, you fund it." Rationale: a per-module keystore lets the module auto-sign the registration without being handed your main wallet key.
Why that's awkward
- You fund an empty, single-purpose account you didn't create — an odd mental model.
- No faucet; you bridge from the Logos Blockchain (~10 h) into that specific account.
- ~70% of what you fund is stranded on the payer afterward — the module exposes no transfer-out (it's recoverable only by driving the underlying wallet by hand, as we did: the payer is an ordinary LEZ account).
- If a node reports one registry but registers on another (§5), you can fund and still see "no membership."
Better shapes (roughly increasing effort)
- Surface the state — show the payer address, the amount needed, the live balance, and the membership state, so a funding/blocked node is legible instead of a silent dead-end (the send API returns success even with no membership). This is already being built: Alisher (@xAlisher) is reworking his
rln_uito exactly this payer → fund → live-balance → auto-active model, and proposed a shared RLN-status component (ecosystem #260) so it's done once rather than per app. Separately, an officialrln_membership_uialready exists (logos-co/logos-rln-modules, maintained by @adklempner) — polished, but not in Basecamp's default catalog, on the deprecated QML→core pattern, and its published build fails wallet sync against the current testnet. - Fund & reclaim from your existing wallet in the UI: a one-click "fund the payer from my wallet," plus a "reclaim leftover" action to sweep the unused ~70% back. Keeps the per-module keystore; removes the discover-and-strand pain.
- Bring your own funded account (the intuitive model) — confirmed as the committed v0.5 direction. Rather than minting a fresh empty payer, the module will use or install the LEZ wallet module and let you link an existing LEZ Zone Wallet to pay for registration (Hanno/Arseniy, AnonComms, Nov 4). Caveat: the account that registers is the one that can later extend/withdraw the membership, so there's deliberate coupling. Note the boundary — only the payment account externalizes; the RLN keystore (secret + commitment) stays in the module. Exporting the keystore itself is unsafe: the secret is accessed too often for proof generation to live elsewhere, and a membership used in two places can slash itself (the rate limit can't be enforced across both).
- The roadmap fix — no user funds at all: the allocation-protocol / gifter path (v0.4, §7) removes the funding step entirely. So options 2–3 are transitional; the durable investments are the shared status component (1) and steering toward (4).
9. Gotchas hit during this run
- Catalog install of 0.3.3 can flaky-reject the signature. The
package install delivery_modulepath rejected 0.3.3 ("signature does not verify") in this session — but the artifact is valid (its sha256 matches the catalog'sfd538b07…) and installing from the downloaded.lgxworks. A transient/path hiccup, not a mis-signed package. - Don't fall back to delivery 0.3.2. With the newer RLN modules, 0.3.2 leaves the payer stuck at
waiting_for_walletand it never derives. Use 0.3.3. get_registry_parameters/get_epoch_quotareturned null — the exact price can't be read live from the module today; fund and measure the balance delta instead.- Testnet blocks are slow (~45–90 s). The v0.3.1 wallet stops waiting after ~50 s and reports "not found in preconfigured amount of blocks" even though the tx lands later — check the balance /
getTransactionbefore resending.
10. Open items for the delivery / AnonComms team
- Which testnet RLN registry is canonical —
fd322d32…or841312e9…— and why do nodes see both? (§5) - Is
logos.testRLN validation intended to stay off, and until when? (The Oct-13 "a couple of weeks" has lapsed; the send-gate is enforced.) - delivery 0.3.3's catalog-install signature hiccup — reproducible, or environment-specific?
- Timeline for the allocation-protocol registration (removes the LEZ-funding step).