mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-12 09:13:23 +00:00
The NIP was updated to publish a recipient's BOLT12 offer(s) in a dedicated replaceable event (kind 10058, `bolt12_offer`) instead of a kind:0 field — this is what ties an offer to a Nostr identity (the author's signature) and gives BOLT12 zaps the send-side addressability that lightning zaps get from lud16. - Bolt12OfferListEvent (kind 10058): a BaseReplaceableEvent holding one or more `["offer","lno1..."]` tags (reusing OfferTag), with offers()/firstOffer() accessors and create/updateOffers factories (mirrors ChatMessageRelayListEvent). - Registered in EventFactory + a KindNames display entry. - Tests: offers round-trip + factory typing, malformed-offer-tag filtering, and updateOffers replacing the offer set while keeping other tags. Discovery: a payer fetches the recipient's latest 10058 and picks an offer. The app-side caching, subscription, editor, and payment intent follow in later commits. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SpgpWLKzgD7vS9Fs4CXTR3