Skip to content

Commit 2b00e0e

Browse files
cleanup remote signer
1 parent de2936a commit 2b00e0e

File tree

4 files changed

+193
-173
lines changed

4 files changed

+193
-173
lines changed

src/interfaces.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import BN from "bn.js";
2323

2424
import { FactorKeyTypeShareDescription, TssShareType, USER_PATH, WEB3AUTH_NETWORK } from "./constants";
2525
import { ISessionSigGenerator } from "./plugins/SessionSigGenerator/ISessionSigGenerator";
26-
import { IRemoteClientState } from "./plugins/Signer/ISigner";
26+
import { IDklsSignConfig, IFrostSignConfig, IRemoteFactor } from "./plugins/Signer/ISigner";
2727

2828
export type CoreKitMode = UX_MODE_TYPE | "nodejs" | "react-native";
2929

@@ -186,7 +186,7 @@ export interface Web3AuthState {
186186
tssPubKey?: Buffer;
187187
accountIndex: number;
188188
factorKey?: BN;
189-
remoteClient?: IRemoteClientState;
189+
remoteFactor?: IRemoteFactor;
190190
}
191191

192192
export type WEB3AUTH_NETWORK_TYPE = (typeof WEB3AUTH_NETWORK)[keyof typeof WEB3AUTH_NETWORK];
@@ -356,7 +356,8 @@ export interface ISignerContext {
356356
serverCoeffs: Record<string, string>;
357357
signatures: string[];
358358
}>;
359-
setupRemoteSigning(params: Omit<IRemoteClientState, "tssShareIndex">, rehydrate?: boolean): Promise<void>;
359+
preSetupDKLSSigningConfig(): Promise<IDklsSignConfig>;
360+
preSetupFrostSigningConfig(): Promise<IFrostSignConfig>;
360361
createFactor(createFactorParams: CreateFactorParams): Promise<string>;
361362
inputFactorKey(factorKey: string): Promise<void>;
362363
deleteFactor(factorPub: TkeyPoint, factorKey?: BNString): Promise<void>;

0 commit comments

Comments
 (0)