aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-16 13:06:47 -0700
committerAdam Soltys <[email protected]>2026-10-29 16:40:36 -0700
commitbdeda0fa35a0c0d1a59621f95143e09ce8def8b9 (patch)
tree4e34e8cd1e06c4c40873422f9ba4df58a2481868 /package.json
parentabb0f094aa51155cec4561b4999f6739df47f23e (diff)
downloadcoinos-server-bdeda0fa35a0c0d1a59621f95143e09ce8def8b9.tar.gz
coinos-server-bdeda0fa35a0c0d1a59621f95143e09ce8def8b9.zip
users: open pre-NIP-49 nostr keys with the account password
Older accounts keep their nostr key as a password-encrypted seed (cipher + salt) rather than a NIP-49 nsec, so the reveal and signing paths treated them as having no key. On a verified password, /login and /nsec now convert it to a NIP-49 nsec, and hasnsec counts it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'package.json')
-rw-r--r--package.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/package.json b/package.json
index 01a3a5e4..734a21bf 100644
--- a/package.json
+++ b/package.json
@@ -26,6 +26,7 @@
"@fastify/websocket": "^11.3.0",
"@noble/hashes": "^1.8.0",
"@scure/base": "^1.2.6",
+ "@scure/bip39": "^2.0.1",
"bech32": "^2.0.0",
"buffer-crc32": "^0.2.13",
"clightning-client": "github:asoltys/lightning-client-js#master",