@@ -133,7 +133,7 @@ describe('signMpcTransaction', () => {
133133 // Mock KMS responses
134134 const kmsNock = nock ( kmsUrl )
135135 . get ( `/key/${ input . pub } ` )
136- . query ( { source : 'user' } )
136+ . query ( { source : 'user' , useLocalEncipherment : false } )
137137 . reply ( 200 , mockKmsResponse ) ;
138138
139139 const dataKeyNock = nock ( kmsUrl ) . post ( '/generateDataKey' ) . reply ( 200 , mockDataKeyResponse ) ;
@@ -171,7 +171,7 @@ describe('signMpcTransaction', () => {
171171 // Mock KMS responses for R share
172172 const rKmsNock = nock ( kmsUrl )
173173 . get ( `/key/${ rInput . pub } ` )
174- . query ( { source : 'user' } )
174+ . query ( { source : 'user' , useLocalEncipherment : false } )
175175 . reply ( 200 , mockKmsResponse ) ;
176176
177177 const decryptDataKeyNock = nock ( kmsUrl )
@@ -233,7 +233,7 @@ describe('signMpcTransaction', () => {
233233 // Mock KMS response for G share
234234 const gKmsNock = nock ( kmsUrl )
235235 . get ( `/key/${ gInput . pub } ` )
236- . query ( { source : 'user' } )
236+ . query ( { source : 'user' , useLocalEncipherment : false } )
237237 . reply ( 200 , mockKmsResponse ) ;
238238
239239 const gResponse = await agent
@@ -261,7 +261,7 @@ describe('signMpcTransaction', () => {
261261
262262 const kmsNock = nock ( kmsUrl )
263263 . get ( `/key/${ input . pub } ` )
264- . query ( { source : 'user' } )
264+ . query ( { source : 'user' , useLocalEncipherment : false } )
265265 . reply ( 404 , { error : 'Key not found' } ) ;
266266
267267 const response = await agent
@@ -300,7 +300,7 @@ describe('signMpcTransaction', () => {
300300
301301 const kmsNock = nock ( kmsUrl )
302302 . get ( `/key/${ input . pub } ` )
303- . query ( { source : 'user' } )
303+ . query ( { source : 'user' , useLocalEncipherment : false } )
304304 . reply ( 200 , mockKmsResponse ) ;
305305
306306 const response = await agent
@@ -400,7 +400,7 @@ describe('signMpcTransaction', () => {
400400 // Mock KMS responses for Round 1
401401 const kmsNock = nock ( kmsUrl )
402402 . get ( `/key/${ round1Input . pub } ` )
403- . query ( { source : 'user' } )
403+ . query ( { source : 'user' , useLocalEncipherment : true } )
404404 . reply ( 200 , mockKmsResponse ) ;
405405
406406 const dataKeyNock = nock ( kmsUrl ) . post ( '/generateDataKey' ) . reply ( 200 , mockDataKeyResponse ) ;
@@ -462,7 +462,7 @@ describe('signMpcTransaction', () => {
462462 // Mock KMS responses for Round 2
463463 const r2KmsNock = nock ( kmsUrl )
464464 . get ( `/key/${ round2Input . pub } ` )
465- . query ( { source : 'user' } )
465+ . query ( { source : 'user' , useLocalEncipherment : true } )
466466 . reply ( 200 , mockKmsResponse ) ;
467467
468468 const decryptDataKeyNock = nock ( kmsUrl )
@@ -510,7 +510,7 @@ describe('signMpcTransaction', () => {
510510 // Mock KMS responses for Round 3
511511 const r3KmsNock = nock ( kmsUrl )
512512 . get ( `/key/${ round3Input . pub } ` )
513- . query ( { source : 'user' } )
513+ . query ( { source : 'user' , useLocalEncipherment : true } )
514514 . reply ( 200 , mockKmsResponse ) ;
515515
516516 const r3DecryptDataKeyNock = nock ( kmsUrl )
@@ -592,7 +592,7 @@ describe('signMpcTransaction', () => {
592592
593593 const kmsNock = nock ( kmsUrl )
594594 . get ( `/key/${ input . pub } ` )
595- . query ( { source : 'user' } )
595+ . query ( { source : 'user' , useLocalEncipherment : true } )
596596 . reply ( 200 , mockKmsResponse ) ;
597597
598598 const response = await agent
@@ -627,7 +627,7 @@ describe('signMpcTransaction', () => {
627627
628628 const kmsNock = nock ( kmsUrl )
629629 . get ( `/key/${ input . pub } ` )
630- . query ( { source : 'user' } )
630+ . query ( { source : 'user' , useLocalEncipherment : true } )
631631 . reply ( 200 , mockKmsResponse ) ;
632632
633633 const response = await agent
@@ -658,7 +658,7 @@ describe('signMpcTransaction', () => {
658658
659659 const kmsNock = nock ( kmsUrl )
660660 . get ( `/key/${ input . pub } ` )
661- . query ( { source : 'user' } )
661+ . query ( { source : 'user' , useLocalEncipherment : true } )
662662 . reply ( 200 , mockKmsResponse ) ;
663663
664664 const response = await agent
0 commit comments