Inspiration In Nigerian universities, class reps collect departmental dues, excursion fees and project levies. That usually means bank transfers to a rep's personal account, "check your alert" screenshots on WhatsApp, a hand-kept list, and no record of where the money went. Students argue about who paid, and reps get accused even when they're honest. I'm a Level 400 student at FUTA, Akure, and I've watched this happen every session. I wanted a levy board the whole class can trust without trusting anyone.
What it does • The rep creates a levy: what it's for, the amount in sats (with a naira estimate), the due date, their Lightning address and the class list (names only). • One link goes on the class WhatsApp group. No sign-up and no app install. • Each student picks their name and pays straight to the rep's wallet by QR, any Lightning wallet, or one tap with Nostr Wallet Connect. • The payment is checked, not trusted. OpenLevy asks the rep's own Lightning provider whether the invoice is settled (LUD-21 verify) and checks that the preimage hashes to the payment hash. Only then does it post a receipt to Nostr. • Anyone with the link sees the board: who paid, who still owes, total collected, what was spent, and the balance. • Provable spending: the rep posts each expense signed with a rep key. If the vendor was paid by Lightning, the rep attaches the vendor's invoice and preimage and the entry is marked Proven. Cash spends show as "Claimed, no proof". • Anyone can question an expense, and the flag shows for the whole class. • Two clearly labelled modes: Demo (instant click-through on NWC Faucet test wallets) and Testnet (real Lightning payments on Bitcoin signet). The mode is written into the levy link, so the two ledgers never mix.
How I built it • A static web app (one HTML file and an 84 KB gzipped JS bundle) on GitHub Pages, so it loads on mid-range phones and cheap data. No server, no database, no accounts. • Lightning: LUD-16 Lightning addresses for invoices, LUD-21 verify for payment status, and preimage checks with @getalby/lightning-tools. • Nostr Wallet Connect (@getalby/sdk) for one-tap pay. The connection string stays on the student's phone. • Nostr (nostr-tools, NIP-78 kind 30078 events) as the shared public receipt book, on the damus, nos.lol and primal relays. • Testnet mode uses Blink's staging (signet) Lightning addresses. • An end-to-end test suite on NWC Faucet wallets and public relays (23/23 passing).
Security by design • Receipts are pointers only. Every receipt is re-checked with the payee's provider, the invoice amount must match the levy, and the preimage must hash correctly. • The verify URL must be HTTPS on the same domain as the rep's Lightning address. • Each payment hash counts once. • Spend entries count only if signed by the rep key fixed in the levy link. • OpenLevy never holds money. Students pay the rep directly, so it's fully non-custodial. • Wallet connections and the rep key stay in the device's local storage and are never in the link. • Names only. The app warns reps not to add phone or matric numbers.
Challenges I ran into • Proving a payment without running a server. LUD-21 verify plus a preimage check lets any phone confirm a payment on its own. • Stopping fake receipts and test coins from leaking into real ledgers. That's why the strict mode separation, invoice-network checks and one-count-per-hash rule exist. • Getting real test payments without real money. On 2026-11-16 a 500-sat signet invoice from Blink's staging address was paid by the free ArkFaucet and verified as settled with a matching preimage.
Accomplishments I'm proud of • A working, non-custodial levy board any student can open from a WhatsApp link. • Spending that can actually be proven, not just claimed. • A real signet Lightning payment verified end to end.
What I learned LNURL verify, preimages, Nostr Wallet Connect and Nostr events fit together into a trust layer that needs no backend. Designing for honesty also meant labelling clearly what is proven and what is only claimed.
Honest limits • Anyone with the link can post a receipt under any name. A real payment still counts once, and the earliest receipt wins. Next fix: students sign receipts with their own Nostr key. • Receipts and spend notes are public on Nostr relays. • The rep's wallet must support LUD-21 verify, which not all wallets do yet. • Cash spends can't be proven. • Not yet used with real sats or a real class. The naira estimate is indicative.
What's next for OpenLevy • Student-signed receipts. • A pilot with one FUTA class on mainnet, with small real levies. • Support for more wallets as LUD-21 spreads. • Departmental views across several class levies.
Built With
- bitcoin
- github
- javascript
- lightning
- lnurl
- nostr
- nostr-wallet-connect
- signet
