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 chainBasecamp publishPhone
1–2member1's membership expired (17:13)LEZ: 2 memberships, 0 paid up → 0 devicesrefused: "you're not a member of this repo (yet)"
3member1 renews 1 epoch → paid through 18:581 paid up → 1 device, new keyreads LEZ demo #3, lists CYD Chat
4member1 removes the phone's key from the membership1 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

Basecamp, the whole session (14 min, 10 fps): install, create the repo, LEZ settings, read memberships, four publishes.
Phone: adding LEZ demo #3 after the renewal → CYD Chat appears.

Phone: the first attempt (#1), which hit the bug below.

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.

Install Local Package → backpack_core
Both installed

2. A members repo, with LEZ turned on

"LEZ demo", members
Members → Paid memberships (LEZ) → settings: wallet folder (read only), sequencer, program id

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

2 memberships · 0 paid up, read from the chain by the bundled library
Publish #2: 0 devices; the update note is sent via rsync
Phone: refused

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

6Zj…KVFM paid through 18:58 · 1 paid up
Publish #3: 1 device, new key for the epoch
Phone: LEZ demo #3 with CYD Chat

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

Publish #4: still paid up, but 0 devices → new key
Phone: "not a member" for #4, keeps #3

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)").

Before: the misleading message (#1, no update note)
Now: a red warning in the header and the Members dialog, plus a line in the publish log

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

After reinstalling with bundle-lez.sh output: read at 18:08

Not tested / open