File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments