Skip to content

Commit

Permalink
Revert "genRSAAndEd25519KeyPairではキーを直列に生成する?"
Browse files Browse the repository at this point in the history
This reverts commit d0aada5.
  • Loading branch information
tamaina committed Jul 17, 2024
1 parent c2d084b commit d3280fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/backend/src/misc/gen-key-pair.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d3280fe

Please sign in to comment.