Skip to content

Commit 4422e74

Browse files
committed
feat: refactor setTssTag
1 parent bc907dd commit 4422e74

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/mpcCoreKit.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ export class Web3AuthMPCCoreKit implements ICoreKit, IMPCContext {
255255
public getTssShare(args: { keyType: KeyType; factorkey: BN; accountIndex?: number }) {
256256
const { keyType, factorkey, accountIndex } = args;
257257
return this.tkey.getTSSShare(factorkey, {
258-
tssTag: TSS_TAG_DEFAULT,
259258
keyType,
260259
accountIndex: accountIndex === undefined ? this.state.accountIndex : accountIndex,
261260
});
@@ -764,7 +763,7 @@ export class Web3AuthMPCCoreKit implements ICoreKit, IMPCContext {
764763
* Get public key point.
765764
*/
766765
public getPubKeyPoint(keyType: KeyType, accountIndex?: number): Point {
767-
const tssPubKey = this.tkey.getTSSPub(keyType, TSS_TAG_DEFAULT, accountIndex === undefined ? this.state.accountIndex : accountIndex);
766+
const tssPubKey = this.tkey.getTSSPub(keyType, accountIndex === undefined ? this.state.accountIndex : accountIndex);
768767
return tssPubKey;
769768
}
770769

@@ -967,7 +966,7 @@ export class Web3AuthMPCCoreKit implements ICoreKit, IMPCContext {
967966
}
968967

969968
const authSignatures = await this.getSessionSignatures();
970-
await this.tKey.deleteFactorPub({ factorKey: this.state.factorKey, deleteFactorPub: factorPub, authSignatures, tssTag: TSS_TAG_DEFAULT });
969+
await this.tKey.deleteFactorPub({ factorKey: this.state.factorKey, deleteFactorPub: factorPub, authSignatures });
971970
const factorPubHex = fpp.toSEC1(factorKeyCurve, true).toString("hex");
972971
const allDesc = this.tkey.metadata.getShareDescription();
973972
const keyDesc = allDesc[factorPubHex];
@@ -1097,7 +1096,6 @@ export class Web3AuthMPCCoreKit implements ICoreKit, IMPCContext {
10971096
factorKey: this.state.factorKey,
10981097
authSignatures: this.state.signatures,
10991098
keyType,
1100-
tssTag: TSS_TAG_DEFAULT,
11011099
});
11021100

11031101
const accountNonce = this.getAccountNonce();
@@ -1124,7 +1122,6 @@ export class Web3AuthMPCCoreKit implements ICoreKit, IMPCContext {
11241122
const exportEd25519Seed = await this.tKey._UNSAFE_exportTssEd25519Seed({
11251123
factorKey: this.state.factorKey,
11261124
authSignatures: this.state.signatures,
1127-
tssTag: TSS_TAG_DEFAULT,
11281125
});
11291126

11301127
return exportEd25519Seed;
@@ -1538,7 +1535,6 @@ export class Web3AuthMPCCoreKit implements ICoreKit, IMPCContext {
15381535
newFactorPub,
15391536
newTSSIndex: newFactorTSSIndex,
15401537
refreshShares: this.state.tssShareIndex !== newFactorTSSIndex, // Refresh shares if we have a new factor key index.
1541-
tssTag: TSS_TAG_DEFAULT,
15421538
});
15431539
}
15441540

0 commit comments

Comments
 (0)