Surface ticket buyer npub (nostr_identifier) in the event stats endpoint #25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For the webapp's hoster scan list, which should show the buyer's npub/username (aiolabs/webapp#117).
Context
nameis not the username — the model treatsname+emailanduser_idas mutually-exclusive alternatives (CreateTicket.validate_identifiers): app purchases senduser_id(andnameis null), guests sendname+email. So the hoster list has no reliable buyer identity today.The good news: tickets already store the buyer's nostr identity as
extra.nostr_identifier— a pubkey or nip-05, normalized inviews_api.py(normalize_public_key), used for notifications. It's just not returned by the stats endpoint, whose per-ticket payload is only{ id, name, registered, registered_at }.Proposed change
Include the buyer's
nostr_identifier(the pubkey/nip-05) — and ideally an npub-encoded form — in theGET /tickets/event/{id}/statsper-ticket payload. From the pubkey the webapp can:Optionally also resolve and include the LNbits username for
user_id-based tickets.Webapp follow-up
aiolabs/webapp#117 — add
pubkey/npubtoEventTicketand render username + npub in the scan list.From the 2026-06-17 webapp design review.