From bdeda0fa35a0c0d1a59621f95143e09ce8def8b9 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 16 Oct 2026 13:06:47 -0700 Subject: 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 --- package.json | 1 + 1 file changed, 1 insertion(+) (limited to 'package.json') 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", -- cgit v1.2.3