Skip to content

Nostr discovery - #1

Open
m0wer wants to merge 10 commits into
lnproxy:mainfrom
m0wer:nostr
Open

Nostr discovery#1
m0wer wants to merge 10 commits into
lnproxy:mainfrom
m0wer:nostr

Conversation

@m0wer

@m0wer m0wer commented Jul 16, 2026

Copy link
Copy Markdown

m0wer added 10 commits June 10, 2026 11:00
Add nostr.md describing addressable offer events (kind 38421), encrypted
wrap request/response (kinds 21821/21822), NIP-13 request proof of work,
optional LN node attestation and anonymous identity proof of work,
per-provider fees and limits, cheapest-first client selection, and
configurable nostr relays with working defaults.

Document the privacy model (provider sees the invoice it pays but not the
payer; cf. Kappos et al., USENIX Security 2021) and reuse the base
protocol request/response bodies so HTTP and nostr share an implementation.
LND's AddHoldInvoice API exposes no blinded-path generation, and lnproxy
must use hold invoices to learn the preimage, so an LND-only relay cannot
fulfill wrap_bolt11_blinded or wrap_bolt12. State that relays must only
advertise wrap_* features they can fulfill and must error otherwise.
Align the offer expiration recommendation with the reference relay, clarify
that clients use a ~1h created_at freshness window independent of NIP-40,
note that || is byte concatenation in the identity proof of work, and point
to the Go and JavaScript reference implementations.
Document that the same payment hash legitimately appears on both the proxy and
original payments (including when the original destination is the payer), why
this is safe for the relay (CLTV timeline, not destination distinctness), and
the requirement to keep a non-zero CLTV margin and refuse to pay out below it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant