From b9f7eaefa855d532acbe9f6a1b85c8269f94a88d Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Sun, 16 Mar 2025 16:51:58 +0700 Subject: [PATCH] feat: added logic to use the public key from the options object if one exist --- src/api/modules/encrypt/encrypt.background.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/modules/encrypt/encrypt.background.ts b/src/api/modules/encrypt/encrypt.background.ts index 1334df9b5..1e52302a2 100644 --- a/src/api/modules/encrypt/encrypt.background.ts +++ b/src/api/modules/encrypt/encrypt.background.ts @@ -31,7 +31,7 @@ const background: BackgroundModuleFunction = async ( alg: "RSA-OAEP-256", ext: true }; - + if (options.publicKey) publicKey.n = options.publicKey as string; // remove wallet from memory freeDecryptedWallet(keyfile);