aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-01 23:07:02 -0700
committerAdam Soltys <[email protected]>2026-08-01 23:07:02 -0700
commit83ad00a39863bb6a61e15977202fe2feea2ca696 (patch)
tree251325b582093cdcaf08ba52981ee9905e018e9c /src/app.js
parent88d93de66b9ba713c5cc1a8fc5b1528ea1d74fb8 (diff)
downloadcoinosv3-83ad00a39863bb6a61e15977202fe2feea2ca696.tar.gz
coinosv3-83ad00a39863bb6a61e15977202fe2feea2ca696.zip
Drop npub-locked gifts; collapse Nostr login behind a button
Gifts are plain bearer links again: the recipient-npub field, the one-time claim code, the DM delivery, the /lg/ claim route and the NIP-07 in-place decrypt are all gone, along with the crypto that only they used. Unclaimed gifts remain reclaimable by the sender, so nothing can be stranded by the removal. The unlock screen shows a single 'Sign in with Nostr' button that reveals the login options when tapped, instead of the full card competing with create/import. Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/app.js b/src/app.js
index ded5ee4..8a33166 100644
--- a/src/app.js
+++ b/src/app.js
@@ -76,12 +76,7 @@ const ui = {
pubkeyShown: false, // account public key revealed in Settings
giftMode: false, // gift sub-view active on the Send page
giftAmount: '', // gift-create amount input
- giftLockNpub: '', // optional: lock the gift to this recipient nostr npub
- giftLocked: false, // the just-created gift is locked to a nostr key
giftClaimCode: null, // the one-time claim code DM'd to the recipient (fallback)
- giftDmStatus: null, // 'sending' | 'sent' | 'failed' — nostr DM of the claim code
- claimLocked: null, // a locked gift being opened: { v, amount, to, ct }
- claimCodeInput: '', // the claim code the recipient pastes from their nostr DM
viewGift: null, // re-viewing a previously created gift's link/QR { code, locked, amount, claimCode }
claimChoose: null, // opening a gift with existing wallets present: { code } — pick a target
giftCode: null, // last-created gift PSBT code