@@ -57,7 +57,7 @@ export const tssSharedTests = (mode, torusSP, storageLayer, MOCK_RSS) => {
5757
5858 const tssModule = new TSSModule ( tb1 ) ;
5959 await tssModule . initializeWithTss ( { factorPub, deviceTSSShare, deviceTSSIndex } ) ;
60-
60+ await tb1 . reconstructKey ( ) ;
6161 const newShare = await tb1 . generateNewShare ( ) ;
6262 const reconstructedKey = await tb1 . reconstructKey ( ) ;
6363 await tb1 . syncLocalMetadataTransitions ( ) ;
@@ -66,10 +66,9 @@ export const tssSharedTests = (mode, torusSP, storageLayer, MOCK_RSS) => {
6666 }
6767
6868 const tb2 = new ThresholdKey ( { serviceProvider : sp , storageLayer, manualSync : mode } ) ;
69-
7069 const tssModule2 = new TSSModule ( tb2 ) ;
7170 await tssModule2 . initializeWithTss ( { factorPub } ) ;
72- // await tb2.initialize({ useTSS: true, factorPub });
71+
7372 tb2 . inputShareStore ( newShare . newShareStores [ newShare . newShareIndex . toString ( "hex" ) ] ) ;
7473 await tb2 . reconstructKey ( ) ;
7574 const { tssShare : retrievedTSS , tssIndex : retrievedTSSIndex } = await tssModule2 . getTSSShare ( factorKey ) ;
@@ -499,9 +498,6 @@ export const tssSharedTests = (mode, torusSP, storageLayer, MOCK_RSS) => {
499498 it ( `#should serialize and deserialize correctly without tkeyArgs, manualSync=${ mode } ` , async function ( ) {
500499 if ( ! customSP . useTSS ) this . skip ( ) ;
501500 const sp = customSP ;
502- let userInput = new BN ( keccak256 ( "user answer blublu" ) . slice ( 2 ) , "hex" ) ;
503- userInput = userInput . umod ( ecCurve . curve . n ) ;
504- const resp1 = await tssModule . tkey . _initializeNewKey ( { userInput, initializeModules : true } ) ;
505501
506502 sp . verifierName = "torus-test-health" ;
507503 sp . verifierId = verifierId ;
@@ -517,7 +513,7 @@ export const tssSharedTests = (mode, torusSP, storageLayer, MOCK_RSS) => {
517513
518514 let userInput = new BN ( keccak256 ( "user answer blublu" ) . slice ( 2 ) , "hex" ) ;
519515 userInput = userInput . umod ( ecCurve . curve . n ) ;
520- const resp1 = await tb . _initializeNewKey ( { userInput, initializeModules : true } ) ;
516+ const resp1 = await tssModule . tkey . _initializeNewKey ( { userInput, initializeModules : true } ) ;
521517
522518 const deviceTSSShare = new BN ( generatePrivate ( ) ) ;
523519 const deviceTSSIndex = 2 ;
0 commit comments