aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/nwc.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-01 23:31:24 -0700
committerAdam Soltys <[email protected]>2026-08-01 23:31:24 -0700
commite978ae682f71ce87c14fb8bea886f90ddd4bf1c3 (patch)
tree6635b6661ff7a5bc43f118b22b0c20ccea405b18 /src/features/nwc.js
parent3dab66c5d3d63f19444e7fe14017fdfeb9a8e27d (diff)
downloadcoinosv3-e978ae682f71ce87c14fb8bea886f90ddd4bf1c3.tar.gz
coinosv3-e978ae682f71ce87c14fb8bea886f90ddd4bf1c3.zip
Payment addresses accept Lightning from LNURL-only wallets
An address only worked for wallets that speak DNS payment instructions or BOLT 12; everything else looks for /.well-known/lnurlp/<name>. The registrar now serves LUD-06/16 (with NIP-57 zap support), preferring the path that touches no funds: if the recipient's wallet published a CLINK offer key, we ask IT for the invoice over nostr and hand the result straight back — the payment never passes through us. Only when nobody answers does our node mint the invoice, and the existing settle forwarder pushes the money on to their address, signing a zap receipt when the payment was a zap. Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'src/features/nwc.js')
-rw-r--r--src/features/nwc.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/features/nwc.js b/src/features/nwc.js
index 5c49273..e7511c1 100644
--- a/src/features/nwc.js
+++ b/src/features/nwc.js
@@ -762,6 +762,7 @@ export function nwcFeature(ctx) {
return {
id: 'nwc',
+ nwcOfferPubkey() { return (hook('arkReady') && !wallet.watchOnly) ? offerKeys().pk : null; },
nwcOfferString() { return hook('arkReady') && !wallet.watchOnly ? offerString() : null; },
init() { listen(); startWatchdog(); refreshRegistration(); reconcileBg(); },
stop() { stop(); if (watchdog) { clearInterval(watchdog); watchdog = null; } },