diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/nostr.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/nostr.ts b/src/lib/nostr.ts index 1bd26144..2e3ea142 100644 --- a/src/lib/nostr.ts +++ b/src/lib/nostr.ts @@ -103,9 +103,7 @@ export const getPrivateKey = async (user: User): Promise<Uint8Array> => { export const getMnemonic = async (user: User) => { const { cipher, salt } = user; - let entropy; - - entropy = new Uint8Array( + const entropy = new Uint8Array( await crypto.subtle.decrypt( { name: "AES-GCM", iv: new Uint8Array(16) }, await stretch(await getPassword(), Buffer.from(salt, "hex")), |
