couponsby La Crypta

Overview

Coupons any till can mint — advertised on Nostr, redeemed once.

This Coupon Manager Service (CMS) mints and redeems coupons on a merchant's behalf. The merchant authorizes it by signing a Nostr event that says where the service lives. Any POS that reads that event can mint and redeem without ever talking to us first.

Live implementation: merchant.lacrypta.ar

Who is who

RoleJobKey
MerchantCreates definitions, authorizes minters, signs the announcementTheirs (NIP-07 / NIP-46)
MinterMint coupons for a merchant who authorized themnpub whitelisted by merchant
Coupon Manager Service (CMS)Create/Update/Delete/Burn coupons and sign vouchersCOUPON_MANAGER_NSEC
BearerHolds the coupon code (nonce) and redeemsNone — the nonce is the credential

One CMS deployment serves many merchants. Everything is scoped by the pubkey that signed the request.

Why a database

Relays are eventually consistent — perfect for a catalog, useless for "has this coupon been used?".

Postgres answers that once. Everything that needs discovery lives on Nostr. Everything that needs a single truth lives in the DB.

Start here

On this page