Skip to content

Commit

Permalink
feat: update plugin setCustomSign
Browse files Browse the repository at this point in the history
  • Loading branch information
ieow committed Dec 13, 2024
1 parent 4fd31d1 commit 65875e2
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 188 deletions.
47 changes: 22 additions & 25 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,44 +475,41 @@ export interface EthereumSigner {
}

type SupportedCurve = "secp256k1" | "ed25519";
// remote signer interface
export type RemoteDklsSignParams = {
factorEnc?: FactorEnc;
sessionId: string;
tssNonce: number;
accountNonce: string;
tssPubKeyHex: string;

nodeIndexes: number[];
tssCommits: PointHex[];

signatures: string[];

serverEndpoints: {
endpoints: string[];
tssWSEndpoints: string[];
partyIndexes: number[];
};

curve: SupportedCurve;
};

export type RemoteFrostSignParams = {
export type ICustomFrostSignParams = {
sessionId: string;
signatures: string[];
tssCommits: PointHex[];
factorEnc: FactorEnc;
tssPubKeyHex: string;
curve: SupportedCurve;

serverXCoords: number[];
clientXCoord: number;
serverCoefficients: string[];
clientCoefficient: string;
tssPubKeyHex: string;
serverURLs: string[];

curve: SupportedCurve;
};

export interface Secp256k1PrecomputedClient {
client: Client;
serverCoeffs: Record<string, string>;
}

export interface ICustomDklsSignParams {
sessionId: string;
signatures: string[];
tssCommits: PointHex[];
factorEnc: FactorEnc;
tssPubKeyHex: string;
curve: SupportedCurve;

participatingServerDKGIndexes: number[];
clientIndex: number;
tssNonce: string;
accountNonce: string;

endpoints: string[];
tssWSEndpoints: string[];
partyIndexes: number[];
}
Loading

0 comments on commit 65875e2

Please sign in to comment.