|
@ -164,7 +164,6 @@ BIP32.prototype.extendedPublicKeyString = function(format) { |
|
|
var data = Buffer.concat([this.extendedPublicKey, checksum]); |
|
|
var data = Buffer.concat([this.extendedPublicKey, checksum]); |
|
|
return base58.encode(data); |
|
|
return base58.encode(data); |
|
|
} else if (format === 'hex') { |
|
|
} else if (format === 'hex') { |
|
|
alert('calc'+this.extendedPublicKey.toString('hex')); |
|
|
|
|
|
return this.extendedPublicKey.toString('hex');; |
|
|
return this.extendedPublicKey.toString('hex');; |
|
|
} else { |
|
|
} else { |
|
|
throw new Error('bad format'); |
|
|
throw new Error('bad format'); |
|
|