From 95918607f4ee404ddcdd1db8cde7a6d92331f965 Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 18 Jul 2024 00:04:35 +0900 Subject: [PATCH] modify comment --- packages/backend/src/core/UserKeypairService.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/core/UserKeypairService.ts b/packages/backend/src/core/UserKeypairService.ts index 902f008660..aa90f1e209 100644 --- a/packages/backend/src/core/UserKeypairService.ts +++ b/packages/backend/src/core/UserKeypairService.ts @@ -83,13 +83,14 @@ export class UserKeypairService implements OnApplicationShutdown { * Using cache due to performance reasons of `crypto.subtle.importKey` * @param userIdOrHint user id, MiUserKeypair, or PrivateKeyWithPem * @param preferType - * If ed25519-like(`ed25519`, `01`, `11`) is specified, ed25519 keypair is returned if exists. - * Otherwise, main keypair is returned. (ignored if userIdOrHint is PrivateKeyWithPem) + * If ed25519-like(`ed25519`, `01`, `11`) is specified, ed25519 keypair will be returned if exists. + * Otherwise, main keypair will be returned. (ignored if userIdOrHint is PrivateKeyWithPem) * @returns */ @bindThis public async getLocalUserPrivateKey( - userIdOrHint: MiUser['id'] | MiUserKeypair | PrivateKeyWithPem, preferType?: string, + userIdOrHint: MiUser['id'] | MiUserKeypair | PrivateKeyWithPem, + preferType?: string, ): Promise { if (typeof userIdOrHint === 'object' && 'privateKeyPem' in userIdOrHint) { // userIdOrHint is PrivateKeyWithPem