aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-15 15:06:53 -0800
committerAdam Soltys <[email protected]>2024-11-15 15:06:53 -0800
commit1555da1f1f346784ae0d464d4ac53bb7c494a758 (patch)
tree61fa20144e9f1211847f4ee3417080394d39a1e6
parent288b470656dcbb86bf3fadd45b6f58833d881f3f (diff)
downloadcoinos-ui-1555da1f1f346784ae0d464d4ac53bb7c494a758.tar.gz
coinos-ui-1555da1f1f346784ae0d464d4ac53bb7c494a758.zip
update nostr-tools
-rwxr-xr-xbun.lockbbin184166 -> 184167 bytes
-rw-r--r--package.json2
-rw-r--r--src/lib/nostr.ts2
3 files changed, 2 insertions, 2 deletions
diff --git a/bun.lockb b/bun.lockb
index 3d7468aa..13fa3bcb 100755
--- a/bun.lockb
+++ b/bun.lockb
Binary files differ
diff --git a/package.json b/package.json
index f47d27e7..0db4386e 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,7 @@
"leaflet": "^1.9.3",
"leaflet.markercluster": "^1.5.3",
"maplibre-gl": "^3.3.1",
- "nostr-tools": "^2.7.2",
+ "nostr-tools": "^2.10.3",
"postcss": "^8.4.20",
"prettier": "^3.1.0",
"prettier-plugin-svelte": "^3.2.6",
diff --git a/src/lib/nostr.ts b/src/lib/nostr.ts
index 306aa643..1bd26144 100644
--- a/src/lib/nostr.ts
+++ b/src/lib/nostr.ts
@@ -95,7 +95,7 @@ export const getPrivateKey = async (user: User): Promise<Uint8Array> => {
if (nsec) {
k = nip49decrypt(nsec, await getPassword());
- } else k = hex.decode(privateKeyFromSeedWords(await getMnemonic(user)));
+ } else k = privateKeyFromSeedWords(await getMnemonic(user));
localStorage.setItem("nsec", nip19.nsecEncode(k));
return k;