aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/names.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/names.js')
-rw-r--r--src/features/names.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/features/names.js b/src/features/names.js
index 4e4f704..4c0ffaf 100644
--- a/src/features/names.js
+++ b/src/features/names.js
@@ -66,6 +66,9 @@ export function namesFeature(ctx) {
if (!uri) throw new Error(t('namesNeedArk'));
const j = await post('/register', 'POST', {
name, uri, domain: DOMAIN,
+ // lets the address take Lightning payments from LNURL-only wallets:
+ // the registrar asks this key for an invoice before minting its own
+ ...(hook('nwcOfferPubkey') ? { offerPk: hook('nwcOfferPubkey') } : {}),
// when the login identity claims its own npub name, it nominates the
// wallet key to keep the record updated afterwards
...(manager ? { manager } : {}),