aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-15 15:57:09 -0700
committerAdam Soltys <[email protected]>2026-08-15 15:57:09 -0700
commitaaecfddb1867c2d6b69096127ac30093657b53e8 (patch)
tree3424fd813d18c6c874bfcbd10c48222c40607e46 /src
parent68aa01161907886b9b73f700671ca50fa5089371 (diff)
downloadcoinosv3-aaecfddb1867c2d6b69096127ac30093657b53e8.tar.gz
coinosv3-aaecfddb1867c2d6b69096127ac30093657b53e8.zip
The wrong-signer error names the whole npub — a truncated key can't be checked against anything
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_014tE4U5nEjGTQy8PwYqamfv
Diffstat (limited to 'src')
-rw-r--r--src/features/nostrlogin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/features/nostrlogin.js b/src/features/nostrlogin.js
index 4c28ac5..66fd8a2 100644
--- a/src/features/nostrlogin.js
+++ b/src/features/nostrlogin.js
@@ -279,7 +279,7 @@ export function nostrLoginFeature(ctx) {
const signer = await makeSigner();
if (signer.pubkey !== st.pubkey) {
if (signer.close) signer.close();
- throw new Error(t('nlWrongAccount', { npub: (npubOf(st.pubkey) || '').slice(0, 16) + '…' }));
+ throw new Error(t('nlWrongAccount', { npub: npubOf(st.pubkey) || '' }));
}
live = selfHealing(signer);
save({ ...load(), ...sessionOf(signer) });