@@ -84,15 +84,14 @@ describe('Ecdsa tss helper functions tests', function () {
8484 nock . cleanAll ( ) ;
8585 } ) ;
8686
87- // TODO BG-61214 renable VSS
88- xit ( 'should encrypt n shares foreach user' , async function ( ) {
89-
87+ it ( 'should encrypt n shares foreach user' , async function ( ) {
9088 for ( let i = 2 ; i <= 3 ; i ++ ) {
9189 const encryptedNShare = await ECDSAMethods . encryptNShare ( userKeyShare , i , bitgoGpgKeypair . publicKey ) ;
9290 const decryptedNShare = await ECDSAMethods . decryptNShare ( { nShare : encryptedNShare , senderPublicArmor : userGpgKeypair . publicKey , recipientPrivateArmor : bitgoGpgKeypair . privateKey } ) ;
9391 decryptedNShare . u . should . equal ( userKeyShare . nShares [ i ] . u ) ;
94- const publicKey = userKeyShare . pShare . y + userKeyShare . nShares [ 3 ] . v + userKeyShare . pShare . chaincode ;
92+ const publicKey = userKeyShare . pShare . y + userKeyShare . pShare . chaincode ;
9593 encryptedNShare . i . should . equal ( i ) ;
94+ encryptedNShare . v ! . should . equal ( userKeyShare . nShares [ 3 ] . v ! ) ;
9695 encryptedNShare . j . should . equal ( 1 ) ;
9796 encryptedNShare . publicShare . should . equal ( publicKey ) ;
9897 }
@@ -120,8 +119,7 @@ describe('Ecdsa tss helper functions tests', function () {
120119 nock . cleanAll ( ) ;
121120 } ) ;
122121
123- // TODO BG-58151 re-enable test
124- xit ( 'should create combined user key' , async function ( ) {
122+ it ( 'should create combined user key' , async function ( ) {
125123 const bitgoToUserShare = await ECDSAMethods . encryptNShare ( bitgoKeyShare , 1 , userGpgKeypair . publicKey , false ) ;
126124 const backupToUserShare = await ECDSAMethods . encryptNShare ( backupKeyShare , 1 , userGpgKeypair . publicKey , false ) ;
127125 const combinedUserKey = await createCombinedKey (
@@ -148,8 +146,7 @@ describe('Ecdsa tss helper functions tests', function () {
148146 should . not . exist ( combinedUserKey . signingMaterial . userNShare ) ;
149147 } ) ;
150148
151- // TODO BG-61214 renable VSS
152- xit ( 'should create combined backup key' , async function ( ) {
149+ it ( 'should create combined backup key' , async function ( ) {
153150 const bitgoToBackupShare = await encryptNShare (
154151 bitgoKeyShare ,
155152 2 ,
@@ -184,8 +181,7 @@ describe('Ecdsa tss helper functions tests', function () {
184181 should . not . exist ( combinedBackupKey . signingMaterial . backupNShare ) ;
185182 } ) ;
186183
187- // TODO BG-58151 re-enable test
188- xit ( 'should fail if common keychains do not match' , async function ( ) {
184+ it ( 'should fail if common keychains do not match' , async function ( ) {
189185 const bitgoToUserShare = await encryptNShare (
190186 bitgoKeyShare ,
191187 1 ,
@@ -213,8 +209,7 @@ describe('Ecdsa tss helper functions tests', function () {
213209 ) . should . be . rejectedWith ( 'Common keychains do not match' ) ;
214210 } ) ;
215211
216- // TODO BG-58151 re-enable test
217- xit ( 'should fail if gpg keys are mismatched' , async function ( ) {
212+ it ( 'should fail if gpg keys are mismatched' , async function ( ) {
218213 const bitgoToUserShare = await encryptNShare (
219214 bitgoKeyShare ,
220215 1 ,
0 commit comments