Skip to content

Commit

Permalink
cleanup remote signer
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshuchawla009 committed Jan 22, 2025
1 parent de2936a commit 2b00e0e
Show file tree
Hide file tree
Showing 4 changed files with 193 additions and 173 deletions.
7 changes: 4 additions & 3 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import BN from "bn.js";

import { FactorKeyTypeShareDescription, TssShareType, USER_PATH, WEB3AUTH_NETWORK } from "./constants";
import { ISessionSigGenerator } from "./plugins/SessionSigGenerator/ISessionSigGenerator";
import { IRemoteClientState } from "./plugins/Signer/ISigner";
import { IDklsSignConfig, IFrostSignConfig, IRemoteFactor } from "./plugins/Signer/ISigner";

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

Expand Down Expand Up @@ -186,7 +186,7 @@ export interface Web3AuthState {
tssPubKey?: Buffer;
accountIndex: number;
factorKey?: BN;
remoteClient?: IRemoteClientState;
remoteFactor?: IRemoteFactor;
}

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

0 comments on commit 2b00e0e

Please sign in to comment.