From 6109fa6a52323de878da8cb5db85e1c9ae96cd54 Mon Sep 17 00:00:00 2001 From: Aditya <38064122+bettercallav@users.noreply.github.com> Date: Tue, 24 Oct 2023 11:07:52 +1100 Subject: [PATCH] fix: add privateKey and privateKeyPath back to PKA options --- src/PolykeyAgent.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PolykeyAgent.ts b/src/PolykeyAgent.ts index 3506f52f8..aefb48289 100644 --- a/src/PolykeyAgent.ts +++ b/src/PolykeyAgent.ts @@ -2,7 +2,7 @@ import type { DeepPartial, FileSystem } from './types'; import type { PolykeyWorkerManagerInterface } from './workers/types'; import type { TLSConfig } from './network/types'; import type { SeedNodes } from './nodes/types'; -import type { Key, PasswordOpsLimit, PasswordMemLimit } from './keys/types'; +import type { Key, PasswordOpsLimit, PasswordMemLimit, PrivateKey } from "./keys/types"; import path from 'path'; import process from 'process'; import Logger from '@matrixai/logger'; @@ -61,6 +61,8 @@ type PolykeyAgentOptions = { certDuration: number; certRenewLeadTime: number; recoveryCode: string; + privateKeyPath: string; + privateKey: PrivateKey; }; client: { keepAliveTimeoutTime: number;