console.log?
this must have been a remnant of some earlier debugging, either in bitcore2 or in bitcore.
This commit is contained in:
parent
78ef76eb2f
commit
af6932a313
|
@ -151,8 +151,6 @@ BIP32.prototype.buildExtendedPublicKey = function() {
|
||||||
|
|
||||||
BIP32.prototype.extendedPublicKeyString = function(format) {
|
BIP32.prototype.extendedPublicKeyString = function(format) {
|
||||||
if (format === undefined || format === 'base58') {
|
if (format === undefined || format === 'base58') {
|
||||||
if (!Buffer.isBuffer(this.extendedPublicKey))
|
|
||||||
console.log('extendedPublicKey: ' + this.extendedPublicKey);
|
|
||||||
var hash = Hash.sha256sha256(this.extendedPublicKey);
|
var hash = Hash.sha256sha256(this.extendedPublicKey);
|
||||||
var checksum = hash.slice(0, 4);
|
var checksum = hash.slice(0, 4);
|
||||||
var data = Buffer.concat([this.extendedPublicKey, checksum]);
|
var data = Buffer.concat([this.extendedPublicKey, checksum]);
|
||||||
|
|
Loading…
Reference in New Issue