@@ -23,7 +23,7 @@ import BN from "bn.js";
2323
2424import { FactorKeyTypeShareDescription , TssShareType , USER_PATH , WEB3AUTH_NETWORK } from "./constants" ;
2525import { ISessionSigGenerator } from "./plugins/SessionSigGenerator/ISessionSigGenerator" ;
26- import { IRemoteClientState } from "./plugins/Signer/ISigner" ;
26+ import { IDklsSignConfig , IFrostSignConfig , IRemoteFactor } from "./plugins/Signer/ISigner" ;
2727
2828export 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
192192export 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