diff --git a/index.ts b/index.ts index 2182675..104eaba 100644 --- a/index.ts +++ b/index.ts @@ -36,7 +36,6 @@ import { isValidJSON, parseATagQuery, } from './utils.ts'; -import { encryptUint8Array, encryptionKey } from './utils/encryption.ts'; import { getEveFilePath } from './utils/files.ts'; import { log, setupLogger } from './utils/logs.ts'; import { mixQuery, sql, sqlPartial } from './utils/queries.ts'; @@ -974,11 +973,7 @@ async function handleAddCCN( const ccnPublicKey = nostrTools.getPublicKey(privateKeyBytes); const ccnPrivPath = await getEveFilePath(`ccn_keys/${ccnPublicKey}`); - const encryptedPrivateKey = encryptUint8Array( - privateKeyBytes, - encryptionKey, - ); - Deno.writeTextFileSync(ccnPrivPath, encodeBase64(encryptedPrivateKey)); + Deno.writeTextFileSync(ccnPrivPath, encodeBase64(privateKeyBytes)); db.run('BEGIN TRANSACTION');