From d3280fe7b365aa1f4577765623cfacbe15ae2448 Mon Sep 17 00:00:00 2001 From: tamaina Date: Wed, 17 Jul 2024 16:59:01 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"genRSAAndEd25519KeyPair=E3=81=A7?= =?UTF-8?q?=E3=81=AF=E3=82=AD=E3=83=BC=E3=82=92=E7=9B=B4=E5=88=97=E3=81=AB?= =?UTF-8?q?=E7=94=9F=E6=88=90=E3=81=99=E3=82=8B=3F"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit d0aada55c1ed5aa98f18731ec82f3ac5eb5a6c16. --- packages/backend/src/misc/gen-key-pair.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/backend/src/misc/gen-key-pair.ts b/packages/backend/src/misc/gen-key-pair.ts index 58e3091369..0b033ec33e 100644 --- a/packages/backend/src/misc/gen-key-pair.ts +++ b/packages/backend/src/misc/gen-key-pair.ts @@ -6,8 +6,7 @@ import { genEd25519KeyPair, genRsaKeyPair } from '@misskey-dev/node-http-message-signatures'; export async function genRSAAndEd25519KeyPair(rsaModulusLength = 4096) { - const rsa = await genRsaKeyPair(rsaModulusLength); - const ed25519 = await genEd25519KeyPair(); + const [rsa, ed25519] = await Promise.all([genRsaKeyPair(rsaModulusLength), genEd25519KeyPair()]); return { publicKey: rsa.publicKey, privateKey: rsa.privateKey,