diff options
| author | Adam Soltys <[email protected]> | 2025-01-09 23:44:40 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-09 23:44:40 -0800 |
| commit | 7ab6a3d04ff34c8987d204bd71289609f9fd0523 (patch) | |
| tree | 4c1e39704e2edb332c5fe8c58fb0d81c8154af2b /src/lib/utils.ts | |
| parent | e37fa03f08b47d780f9e7f2b3d14125c33ba1b7d (diff) | |
| download | coinos-ui-7ab6a3d04ff34c8987d204bd71289609f9fd0523.tar.gz coinos-ui-7ab6a3d04ff34c8987d204bd71289609f9fd0523.zip | |
nostr signing
Diffstat (limited to 'src/lib/utils.ts')
| -rw-r--r-- | src/lib/utils.ts | 20 |
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", |
