You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/sdk-core/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.ts
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -365,6 +365,10 @@ export class EcdsaMPCv2Utils extends BaseEcdsaUtils {
365
365
input: privateMaterial.toString('base64'),
366
366
password: passphrase,
367
367
});
368
+
// Encrypts the CBOR-encoded ReducedKeyShare (which contains the party's private
369
+
// scalar s_i) with the wallet passphrase. The result is stored as reducedEncryptedPrv
370
+
// on the key card QR code and represents a second copy of private key material
371
+
// beyond the server-stored encryptedPrv.
368
372
reducedEncryptedPrv=this.bitgo.encrypt({
369
373
// Buffer.toString('base64') can not be used here as it does not work on the browser.
370
374
// The browser deals with a Buffer as Uint8Array, therefore in the browser .toString('base64') just creates a comma seperated string of the array values.
0 commit comments