@@ -392,8 +392,9 @@ export class EcdsaMPCv2Utils extends BaseEcdsaUtils {
392392 * @param decryptedKeyshare - MPCv1 decrypted signing material for user or backup as a json.stringify string and bitgo's Big Si.
393393 * @param partyId - The party ID of the MPCv1 keyshare.
394394 * @returns The retrofit data needed to start an MPCv2 DKG session.
395+ * @deprecated
395396 */
396- getKeyDataForRetrofit (
397+ static getKeyDataForRetrofit (
397398 decryptedKeyshare : string ,
398399 partyId : MPCv2PartiesEnum . BACKUP | MPCv2PartiesEnum . USER
399400 ) : DklsTypes . RetrofitData {
@@ -403,7 +404,7 @@ export class EcdsaMPCv2Utils extends BaseEcdsaUtils {
403404 Array . from ( bigIntToBufferBE ( BigInt ( 2 ) , 32 ) ) ,
404405 Array . from ( bigIntToBufferBE ( BigInt ( 3 ) , 32 ) ) ,
405406 ] ;
406- return this . getMpcV2RetrofitDataFromMpcV1Key ( {
407+ return EcdsaMPCv2Utils . getMpcV2RetrofitDataFromMpcV1Key ( {
407408 mpcv1PartyKeyShare : decryptedKeyshare ,
408409 mpcv1PartyIndex : partyId === MPCv2PartiesEnum . USER ? 1 : 2 ,
409410 xiList,
@@ -428,13 +429,13 @@ export class EcdsaMPCv2Utils extends BaseEcdsaUtils {
428429 Array . from ( bigIntToBufferBE ( BigInt ( 3 ) , 32 ) ) ,
429430 ] ;
430431 return {
431- mpcv2UserKeyShare : this . getMpcV2RetrofitDataFromMpcV1Key ( {
432+ mpcv2UserKeyShare : EcdsaMPCv2Utils . getMpcV2RetrofitDataFromMpcV1Key ( {
432433 mpcv1PartyKeyShare : params . mpcv1UserKeyShare ,
433434 mpcv1PartyIndex : 1 ,
434435 xiList,
435436 mpc,
436437 } ) ,
437- mpcv2BackupKeyShare : this . getMpcV2RetrofitDataFromMpcV1Key ( {
438+ mpcv2BackupKeyShare : EcdsaMPCv2Utils . getMpcV2RetrofitDataFromMpcV1Key ( {
438439 mpcv1PartyKeyShare : params . mpcv1BackupKeyShare ,
439440 mpcv1PartyIndex : 2 ,
440441 xiList,
@@ -443,7 +444,15 @@ export class EcdsaMPCv2Utils extends BaseEcdsaUtils {
443444 } ;
444445 }
445446
446- getMpcV2RetrofitDataFromMpcV1Key ( {
447+ /**
448+ * Get retrofit data from MPCv1 key share.
449+ * @param mpcv1PartyKeyShare
450+ * @param mpcv1PartyIndex
451+ * @param xiList
452+ * @param mpc
453+ * @deprecated
454+ */
455+ static getMpcV2RetrofitDataFromMpcV1Key ( {
447456 mpcv1PartyKeyShare,
448457 mpcv1PartyIndex,
449458 xiList,
0 commit comments