@@ -73,9 +73,9 @@ import {
7373export class Web3AuthMPCCoreKit implements ICoreKit {
7474 public state : Web3AuthState = { accountIndex : 0 } ;
7575
76- private options : Web3AuthOptionsWithDefaults ;
76+ public torusSp : TSSTorusServiceProvider | null = null ;
7777
78- private torusSp : TSSTorusServiceProvider | null = null ;
78+ private options : Web3AuthOptionsWithDefaults ;
7979
8080 private storageLayer : TorusStorageLayer | null = null ;
8181
@@ -333,6 +333,7 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
333333
334334 this . updateState ( {
335335 postBoxKey : this . _getPostBoxKey ( loginResponse ) ,
336+ postboxKeyNodeIndexes : loginResponse . nodesData ?. nodeIndexes ,
336337 userInfo : loginResponse . userInfo ,
337338 signatures : this . _getSignatures ( loginResponse . sessionData . sessionTokenData ) ,
338339 } ) ;
@@ -347,6 +348,7 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
347348
348349 this . updateState ( {
349350 postBoxKey : this . _getPostBoxKey ( loginResponse ) ,
351+ postboxKeyNodeIndexes : loginResponse . nodesData ?. nodeIndexes ,
350352 userInfo : loginResponse . userInfo [ 0 ] ,
351353 signatures : this . _getSignatures ( loginResponse . sessionData . sessionTokenData ) ,
352354 } ) ;
@@ -406,6 +408,7 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
406408
407409 this . updateState ( {
408410 postBoxKey,
411+ postboxKeyNodeIndexes : loginResponse . nodesData ?. nodeIndexes || [ ] ,
409412 userInfo : { ...parseToken ( idToken ) , verifier, verifierId } ,
410413 signatures : this . _getSignatures ( loginResponse . sessionData . sessionTokenData ) ,
411414 } ) ;
@@ -438,6 +441,7 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
438441 }
439442 this . updateState ( {
440443 postBoxKey : this . _getPostBoxKey ( data ) ,
444+ postboxKeyNodeIndexes : data . nodesData ?. nodeIndexes || [ ] ,
441445 userInfo : data . userInfo ,
442446 signatures : this . _getSignatures ( data . sessionData . sessionTokenData ) ,
443447 } ) ;
@@ -450,6 +454,7 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
450454 }
451455 this . updateState ( {
452456 postBoxKey : this . _getPostBoxKey ( data ) ,
457+ postboxKeyNodeIndexes : data . nodesData ?. nodeIndexes || [ ] ,
453458 userInfo : data . userInfo [ 0 ] ,
454459 signatures : this . _getSignatures ( data . sessionData . sessionTokenData ) ,
455460 } ) ;
@@ -1121,6 +1126,7 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
11211126 this . updateState ( {
11221127 factorKey : new BN ( result . factorKey , "hex" ) ,
11231128 postBoxKey,
1129+ postboxKeyNodeIndexes : result . postboxKeyNodeIndexes || [ ] ,
11241130 tssShareIndex : result . tssShareIndex ,
11251131 tssPubKey : this . tkey . getTSSPub ( ) . toSEC1 ( this . tKey . tssCurve , false ) ,
11261132 signatures : result . signatures ,
0 commit comments