Skip to content

Commit b8ebc75

Browse files
chore(app): remove prova-lib
Issue: BG-34381
1 parent 5e09a21 commit b8ebc75

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/utils.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const binary = require('ripple-binary-codec');
55
const nodemailer = require('nodemailer');
66
const smtpTransport = require('nodemailer-smtp-transport');
77
const jsrender = require('jsrender');
8-
const prova = require('prova-lib');
98
const utxolib = require('@bitgo/utxo-lib');
109
const stellar = require('stellar-base');
1110
const stellarHd = require('stellar-hd-wallet');
@@ -151,7 +150,7 @@ exports.signXrpWithPrivateKey = function(txHex, privateKey, options) {
151150
if (privateKeyBuffer.length === 33 && privateKeyBuffer[0] === 0) {
152151
privateKeyBuffer = privateKeyBuffer.slice(1, 33);
153152
}
154-
const privateKeyObject = prova.ECPair.fromPrivateKeyBuffer(privateKeyBuffer);
153+
const privateKeyObject = utxolib.bitgo.keyutil.privateKeyBufferToECPair(privateKeyBuffer);
155154
const publicKey = privateKeyObject.getPublicKeyBuffer().toString('hex').toUpperCase();
156155

157156
let tx;

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"nodemailer": "^4.6.7",
4040
"nodemailer-smtp-transport": "^2.7.4",
4141
"prompt-sync": "^4.1.6",
42-
"prova-lib": "^0.2.9",
4342
"q": "^1.5.1",
4443
"ripple-binary-codec": "^0.1.13",
4544
"ripple-hashes": "^0.3.1",

0 commit comments

Comments
 (0)