From 8588de25f16486b56ef0ad533013bd8cb48ff120 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 9 Jan 2025 23:44:40 -0800 Subject: nostr signing --- src/lib/utils.ts | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/lib/utils.ts') 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", -- cgit v1.2.3