Compare commits

..

No commits in common. "190e38dfc1feb20a1bc56a1b17ccb94b37b69297" and "36c7401fa8702d9fc3be69c6d674f03b228ed068" have entirely different histories.

View file

@ -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');