Backpack × LEZ memberships: end-to-end test
2026-10-27 · Basecamp 0.3.2 (GUI, fresh profile) + backpack_core/ui 0.3.0 at 69c6a8c · Backpack 0.2.16 on the Android emulator · LEZ backpack_access v3 test chain (RISC0 dev mode: no real proofs)
Result
A members repo's access follows paid memberships on the chain, all through the Basecamp UI: pay → the phone reads; membership lapses or the device is removed on chain → the next publish shuts the phone out (it keeps what it already had).
| # | On chain | Basecamp publish | Phone |
|---|---|---|---|
| 1–2 | member1's membership expired (17:13) | LEZ: 2 memberships, 0 paid up → 0 devices | refused: "you're not a member of this repo (yet)" |
| 3 | member1 renews 1 epoch → paid through 18:58 | 1 paid up → 1 device, new key | reads LEZ demo #3, lists CYD Chat |
| 4 | member1 removes the phone's key from the membership | 1 paid up, 0 devices → new key | "not a member" for #4; keeps #3 |
The phone's only route in was the on-chain membership: it was never added as a manual member of this repo.
Recordings
Step by step
1. Install from local packages
The core package carries the portable LEZ library (libbackpack_access_ffi.so, glibc 2.28, no pcsclite) next to the plugin; nothing else is installed on the machine.


2. A members repo, with LEZ turned on


3. Read memberships: both expired → publish shuts everyone out



4. Renew on chain → read → publish → the phone gets in



5. Device removed on chain → publish → the phone is out again


Found and fixed in this run
A members repo made in Basecamp didn't work on phones. Phones get a members repo's key only from its update note; Basecamp can set where phones read the note but not where publish sends it (that's CLI-only: backpack config --pointer-put). Without it the phone got no key and showed the private-repo message ("open its link again (the one with the read key)").


The phone also gets its own message for this case ("couldn't reach this repo's update note, and your key comes with it…"): in the code, ships with the next APK. For the test the send target was set with the CLI, the documented way.
Also in 69c6a8c: the core loads the LEZ library from its own package directory; basecamp/backpack_core/bundle-lez.sh adds the portable build to a package (checks the sha256 and that it has no RUNPATH or pcsclite). The re-bundled package was reinstalled and read the chain again (below).

Not tested / open
- The arm64 package: SPEL's arm64 library exists (verified under qemu only); the arm64 core build doesn't carry it yet.
- A real phone (emulator only) and real hardware for arm64.
- The chain runs in RISC0 dev mode (no real ZK proofs); test funds.
- UX nits: the repo badge counts manual devices only ("0 devices" while a LEZ device has access); in New repo the selected radio is the hollow ring; a refused phone doesn't keep the repo, so after paying the link has to be opened again.