...
 
Commits (2)
......@@ -5,8 +5,8 @@ var $ = require('preconditions').singleton();
var util = require('util');
var async = require('async');
var events = require('events');
var Bitcore = require('bitcore-lib');
var Mnemonic = require('bitcore-mnemonic');
var Bitcore = require('bitcore-lib-crown');
var Mnemonic = require('bitcore-mnemonic-crown');
var sjcl = require('sjcl');
var url = require('url');
var querystring = require('querystring');
......
......@@ -5,7 +5,7 @@ var $ = require('preconditions').singleton();
var sjcl = require('sjcl');
var Stringify = require('json-stable-stringify');
var Bitcore = require('bitcore-lib');
var Bitcore = require('bitcore-lib-crown');
var Address = Bitcore.Address;
var PrivateKey = Bitcore.PrivateKey;
var PublicKey = Bitcore.PublicKey;
......
......@@ -3,8 +3,8 @@
var $ = require('preconditions').singleton();
var _ = require('lodash');
var Bitcore = require('bitcore-lib');
var Mnemonic = require('bitcore-mnemonic');
var Bitcore = require('bitcore-lib-crown');
var Mnemonic = require('bitcore-mnemonic-crown');
var sjcl = require('sjcl');
var Common = require('./common');
......@@ -208,7 +208,7 @@ Credentials.prototype._expand = function() {
}
// requests keys from mnemonics, but using a xPubkey
// This is only used when importing mnemonics FROM
// This is only used when importing mnemonics FROM
// an hwwallet, in which xPriv was not available when
// the wallet was created.
if (this.entropySourcePath) {
......@@ -433,7 +433,7 @@ Credentials.prototype.clearMnemonic = function() {
Credentials.fromOldCopayWallet = function(w) {
function walletPrivKeyFromOldCopayWallet(w) {
// IN BWS, the master Pub Keys are not sent to the server,
// IN BWS, the master Pub Keys are not sent to the server,
// so it is safe to use them as seed for wallet's shared secret.
var seed = w.publicKeyRing.copayersExtPubKeys.sort().join('');
var seedBuf = new Buffer(seed);
......@@ -459,7 +459,7 @@ Credentials.fromOldCopayWallet = function(w) {
requestDerivation = (new Bitcore.HDPrivateKey(credentials.xPrivKey))
.deriveChild(path).hdPublicKey;
} else {
// this
// this
var path = Constants.PATHS.REQUEST_KEY_AUTH;
requestDerivation = (new Bitcore.HDPublicKey(xPubStr)).deriveChild(path);
}
......
......@@ -18,4 +18,4 @@ client.Utils = require('./common/utils');
client.sjcl = require('sjcl');
// Expose bitcore
client.Bitcore = require('bitcore-lib');
client.Bitcore = require('bitcore-lib-crown');
var $ = require('preconditions').singleton();
var Bitcore = require('bitcore-lib');
var BitcorePayPro = require('bitcore-payment-protocol');
var Bitcore = require('bitcore-lib-crown');
var BitcorePayPro = require('bitcore-payment-protocol-crown');
var PayPro = {};
PayPro._nodeRequest = function(opts, cb) {
......
var $ = require('preconditions').singleton();
var _ = require('lodash');
var Bitcore = require('bitcore-lib');
var Bitcore = require('bitcore-lib-crown');
var Common = require('./common');
var Utils = Common.Utils;
......
......@@ -15,10 +15,10 @@ var tingodb = require('tingodb')({
var log = require('../lib/log');
var Bitcore = require('bitcore-lib');
var BitcorePayPro = require('bitcore-payment-protocol');
var Bitcore = require('bitcore-lib-crown');
var BitcorePayPro = require('bitcore-payment-protocol-crown');
var BWS = require('bitcore-wallet-service');
var BWS = require('bitcore-wallet-service-crown');
var Common = require('../lib/common');
var Constants = Common.Constants;
......
......@@ -4,7 +4,7 @@ var _ = require('lodash');
var chai = require('chai');
var sinon = require('sinon');
var should = chai.should();
var Bitcore = require('bitcore-lib');
var Bitcore = require('bitcore-lib-crown');
var Utils = require('../lib/common/utils');
......