matt on Nostr: AFAIU they work through generic HTTP callbacks. Implementing a LN-Address server can ...
AFAIU they work through generic HTTP callbacks. Implementing a LN-Address server can create invoices without being on the same server as the node, or it can be behind a reverse proxy to hide it. You can proxy the outbound response but (a) I absolutely refuse to have a TLS client in my lightning node 🤮, (b) some websites block Tor anyway so callbacks may not be as reliable and (c) proxying through Tor is a bunch more work than just serving being a reverse proxy.
Generally the zap design is horrendous and only makes sense for custodial wallets that already run a bunch of HTTP infra. Luckily there’s a better way (just literally do a BOLT 12 payment and have the payer post the payment proof as a nostr event, rather than making the payee’s lightning node somehow nostr-aware), but need movement there.
Published at
2025-04-07 00:53:42Event JSON
{
"id": "581a91274f89e6111379a3a11a7b441dfc1a6542533499b87451e3982079a05d",
"pubkey": "3d2e51508699f98f0f2bdbe7a45b673c687fe6420f466dc296d90b908d51d594",
"created_at": 1743987222,
"kind": 1,
"tags": [
[
"e",
"436901b9f5074f11e0daf0ec8a83ac107c259f575df1e974f43c00fff433b55a",
"wss://relay.primal.net",
"root"
],
[
"e",
"7c0ef8176ad1d7d1c441c14c178c1dc0f6c65abc2c97c111baf30787f6403da9",
"",
"reply"
],
[
"p",
"76c71aae3a491f1d9eec47cba17e229cda4113a0bbb6e6ae1776d7643e29cafa"
],
[
"p",
"192f8a8c137cec912092ffba747a0860593b7843fae1a22bd2f47348bdac5006"
],
[
"p",
"6140478c9ae12f1d0b540e7c57806649327a91b040b07f7ba3dedc357cab0da5"
],
[
"p",
"3516193f50715b4f12d7bbf03d14add45983be819330c1e1196fa917f63fa955"
],
[
"p",
"97f848adcc4c6276685fe48426de5614887c8a51ada0468cec71fba938272911"
]
],
"content": "AFAIU they work through generic HTTP callbacks. Implementing a LN-Address server can create invoices without being on the same server as the node, or it can be behind a reverse proxy to hide it. You can proxy the outbound response but (a) I absolutely refuse to have a TLS client in my lightning node 🤮, (b) some websites block Tor anyway so callbacks may not be as reliable and (c) proxying through Tor is a bunch more work than just serving being a reverse proxy.\n\nGenerally the zap design is horrendous and only makes sense for custodial wallets that already run a bunch of HTTP infra. Luckily there’s a better way (just literally do a BOLT 12 payment and have the payer post the payment proof as a nostr event, rather than making the payee’s lightning node somehow nostr-aware), but need movement there.",
"sig": "42fa535595a9537b2fbdea76bd357fde5d25f5f2fcb006d20e88626fcdbdc149ceec6afa2006a6bcf6b0de04077be5762c9586aabb40974629a3966bda0398a1"
}