modify comment
This commit is contained in:
parent
e602f2efda
commit
72cda5ca80
|
@ -53,13 +53,14 @@ export class UserKeypairService implements OnApplicationShutdown {
|
||||||
* Get private key [Only PrivateKeyWithPem for queue data etc.]
|
* Get private key [Only PrivateKeyWithPem for queue data etc.]
|
||||||
* @param userIdOrHint user id or MiUserKeypair
|
* @param userIdOrHint user id or MiUserKeypair
|
||||||
* @param preferType
|
* @param preferType
|
||||||
* If ed25519-like(`ed25519`, `01`, `11`) is specified, ed25519 keypair is returned if exists.
|
* If ed25519-like(`ed25519`, `01`, `11`) is specified, ed25519 keypair will be returned if exists.
|
||||||
* Otherwise, main keypair is returned.
|
* Otherwise, main keypair will be returned.
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
@bindThis
|
@bindThis
|
||||||
public async getLocalUserPrivateKeyPem(
|
public async getLocalUserPrivateKeyPem(
|
||||||
userIdOrHint: MiUser['id'] | MiUserKeypair, preferType?: string,
|
userIdOrHint: MiUser['id'] | MiUserKeypair,
|
||||||
|
preferType?: string,
|
||||||
): Promise<PrivateKeyWithPem> {
|
): Promise<PrivateKeyWithPem> {
|
||||||
const keypair = typeof userIdOrHint === 'string' ? await this.getUserKeypair(userIdOrHint) : userIdOrHint;
|
const keypair = typeof userIdOrHint === 'string' ? await this.getUserKeypair(userIdOrHint) : userIdOrHint;
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in New Issue