Skip to content

Commit b80ad8a

Browse files
committed
fix: enable multicurve
fix tests add multicurve tests
1 parent 9a25f60 commit b80ad8a

12 files changed

+292
-79
lines changed

src/interfaces.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ export type OAuthLoginParams = (SubVerifierDetailsParams | AggregateVerifierLogi
9595
/**
9696
* Key to import key into Tss during first time login.
9797
*/
98-
importTssKey?: string;
98+
importTssKey?: {
99+
[K in KeyType]: string;
100+
};
99101

100102
/**
101103
* For new users, use SFA key if user was registered with SFA before.
@@ -161,7 +163,9 @@ export interface JWTLoginParams {
161163
/**
162164
* Key to import key into Tss during first time login.
163165
*/
164-
importTssKey?: string;
166+
importTssKey?: {
167+
[K in KeyType]?: string;
168+
};
165169

166170
/**
167171
* For new users, use SFA key if user was registered with SFA before.
@@ -201,7 +205,7 @@ export interface Web3AuthOptions {
201205
/**
202206
* The threshold signing library to use.
203207
*/
204-
tssLib: TssLibType;
208+
tssLibs: TssLibType[];
205209

206210
/**
207211
* @defaultValue `false`
@@ -354,7 +358,7 @@ export interface IMPCContext {
354358
updateState: (newState: Partial<Web3AuthState>) => void;
355359
getUserInfo: () => UserInfo;
356360
setupTkey: (params?: {
357-
providedImportKey?: string;
361+
providedImportKey?: { [key in KeyType]?: string };
358362
sfaLoginResponse?: TorusKey | TorusLoginResponse | TorusAggregateLoginResponse;
359363
userInfo?: UserInfo;
360364
importingSFAKey?: boolean;

0 commit comments

Comments
 (0)