Skip to content

Commit 4fd31d1

Browse files
committed
fix: add required function
1 parent ebd70fc commit 4fd31d1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/mpcCoreKit.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import {
6363
UserInfo,
6464
V3TSSLibType,
6565
V4TSSLibType,
66+
WEB3AUTH_NETWORK_TYPE,
6667
Web3AuthOptions,
6768
Web3AuthOptionsWithDefaults,
6869
Web3AuthState,
@@ -1133,6 +1134,18 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
11331134
this.state = { ...this.state, ...newState };
11341135
}
11351136

1137+
public getWeb3AuthNetwork(): WEB3AUTH_NETWORK_TYPE {
1138+
return this.options.web3AuthNetwork;
1139+
}
1140+
1141+
public getMetadataKey(): string {
1142+
return this.tkey.secp256k1Key.toString("hex");
1143+
}
1144+
1145+
public getMetadataPublicKey(): string {
1146+
return this.tkey.getKeyDetails().pubKey.toSEC1(secp256k1, true).toString("hex");
1147+
}
1148+
11361149
protected async atomicSync<T>(f: () => Promise<T>): Promise<T> {
11371150
this.atomicCallStackCounter += 1;
11381151

0 commit comments

Comments
 (0)