aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-01-09 23:44:40 -0800
committerAdam Soltys <[email protected]>2025-01-09 23:44:40 -0800
commit8588de25f16486b56ef0ad533013bd8cb48ff120 (patch)
tree4c1e39704e2edb332c5fe8c58fb0d81c8154af2b /src/lib/utils.ts
parent2358d1bf39c34a508db6c50f0f6312ee411a8a17 (diff)
downloadcoinos-ui-8588de25f16486b56ef0ad533013bd8cb48ff120.tar.gz
coinos-ui-8588de25f16486b56ef0ad533013bd8cb48ff120.zip
nostr signing
Diffstat (limited to 'src/lib/utils.ts')
-rw-r--r--src/lib/utils.ts20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/lib/utils.ts b/src/lib/utils.ts
index b21ce176..e39c2adc 100644
--- a/src/lib/utils.ts
+++ b/src/lib/utils.ts
@@ -338,26 +338,6 @@ export const wait = async (
return f();
};
-export const stretch = async (password: string, salt: Uint8Array) =>
- crypto.subtle.deriveKey(
- {
- name: "PBKDF2",
- salt,
- iterations: 100000,
- hash: "SHA-256",
- },
- await crypto.subtle.importKey(
- "raw",
- new TextEncoder().encode(password),
- { name: "PBKDF2" },
- false,
- ["deriveBits", "deriveKey"],
- ),
- { name: "AES-GCM", length: 256 },
- true,
- ["encrypt", "decrypt"],
- );
-
export const types = {
bitcoin: "bitcoin",
liquid: "liquid",