Skip to content

Commit ab2fbe6

Browse files
committed
drop support for v3 lib type
1 parent 24c3422 commit ab2fbe6

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/interfaces.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ import { FactorKeyTypeShareDescription, TssShareType, USER_PATH, WEB3AUTH_NETWOR
2121

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

24-
export type V3TSSLibType = { keyType: string; lib: unknown };
2524
export type V4TSSLibType = typeof TssDklsLib | typeof TssFrostLibEd25519 | typeof TssFrostLibBip340;
26-
export type TssLibType = V4TSSLibType | V3TSSLibType;
25+
export type TssLibType = typeof TssDklsLib | typeof TssFrostLibEd25519 | typeof TssFrostLibBip340;
2726

2827
export interface IStorage {
2928
getItem(key: string): string | null;

src/mpcCoreKit.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ import {
5151
TkeyLocalStoreData,
5252
TssLibType,
5353
UserInfo,
54-
V3TSSLibType,
55-
V4TSSLibType,
5654
Web3AuthOptions,
5755
Web3AuthOptionsWithDefaults,
5856
Web3AuthState,
@@ -1480,10 +1478,6 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
14801478

14811479
private async loadTssWasm() {
14821480
if (this.wasmLib) return this.wasmLib;
1483-
if (typeof (this._tssLib as V4TSSLibType).load === "function") {
1484-
return (this._tssLib as V4TSSLibType).load();
1485-
} else if ((this._tssLib as V3TSSLibType).lib) {
1486-
return (this._tssLib as V3TSSLibType).lib as DKLSWasmLib | FrostWasmLibEd25519 | FrostWasmLibBip340;
1487-
}
1481+
return this._tssLib.load();
14881482
}
14891483
}

0 commit comments

Comments
 (0)