@@ -15,29 +15,29 @@ async function encryptWalletUpdateRequest(
1515 ...params ,
1616 } ;
1717
18- const userAuthXprv = await wallet . bitgo . decryptAsync ( {
18+ const userAuthXprv = await wallet . bitgo . decrypt ( {
1919 password : params . passphrase ,
2020 input : userAuthKeyEncryptedPrv ,
2121 } ) ;
2222
2323 if ( params . signerTlsKey ) {
24- requestWithEncryption . encryptedSignerTlsKey = await wallet . bitgo . encryptAsync ( {
24+ requestWithEncryption . encryptedSignerTlsKey = await wallet . bitgo . encrypt ( {
2525 password : params . passphrase ,
2626 input : params . signerTlsKey ,
2727 encryptionVersion : params . encryptionVersion ,
2828 } ) ;
2929 }
3030
3131 if ( params . signerAdminMacaroon ) {
32- requestWithEncryption . encryptedSignerAdminMacaroon = await wallet . bitgo . encryptAsync ( {
32+ requestWithEncryption . encryptedSignerAdminMacaroon = await wallet . bitgo . encrypt ( {
3333 password : params . passphrase ,
3434 input : params . signerAdminMacaroon ,
3535 encryptionVersion : params . encryptionVersion ,
3636 } ) ;
3737 }
3838
3939 if ( params . signerMacaroon ) {
40- requestWithEncryption . encryptedSignerMacaroon = await wallet . bitgo . encryptAsync ( {
40+ requestWithEncryption . encryptedSignerMacaroon = await wallet . bitgo . encrypt ( {
4141 password : deriveLightningServiceSharedSecret ( coinName , userAuthXprv ) . toString ( 'hex' ) ,
4242 input : params . signerMacaroon ,
4343 encryptionVersion : params . encryptionVersion ,
@@ -92,7 +92,7 @@ export async function updateWalletCoinSpecific(
9292 const updateRequestWithEncryption = await encryptWalletUpdateRequest ( wallet , params , userAuthKeyEncryptedPrv ) ;
9393 const signature = createMessageSignature (
9494 updateRequestWithEncryption ,
95- await wallet . bitgo . decryptAsync ( { password : params . passphrase , input : userAuthKeyEncryptedPrv } )
95+ await wallet . bitgo . decrypt ( { password : params . passphrase , input : userAuthKeyEncryptedPrv } )
9696 ) ;
9797 const coinSpecific = {
9898 [ wallet . coin ( ) ] : {
0 commit comments