remove PeerManager exception, no necesary anymore
This commit is contained in:
parent
5be37f2c7b
commit
711ba6d9a8
|
@ -23,7 +23,7 @@ WalletKey.prototype.storeObj = function() {
|
|||
var pubKey = this.privKey.public.toString('hex');
|
||||
console.log('[WalletKey.js.23:pubKey:]',pubKey); //TODO
|
||||
var pubKeyHash = coinUtil.sha256ripe160(this.privKey.public);
|
||||
console.log('[WalletKey.js.25:pubKeyHash:]',pubKeyHash); //TODO
|
||||
console.log('[WalletKey.js.25:pubKeyHash:]', buffertools.toHex(pubKeyHash)); //TODO
|
||||
var addr = new Address(this.network.addressPubkey, pubKeyHash);
|
||||
var priv = new PrivateKey(this.network.keySecret, this.privKey.private, this.privKey.compressed);
|
||||
var obj = {
|
||||
|
|
|
@ -59,9 +59,9 @@
|
|||
var WalletKey = bitcore.WalletKey;
|
||||
var networks = bitcore.networks;
|
||||
|
||||
var priv = 'cU5NxfpfecLCUWnJyoUF6dCZqCfLSAZnTBPraCPis2if8iHHbNk1';
|
||||
var priv = 'L4cEVwoNDeYdCQfFJAGkGKPnE2TmqLEuBn4znQChD2ojjQRJVKpU';
|
||||
var s = new WalletKey({
|
||||
network: networks.testnet
|
||||
network: networks.livenet
|
||||
});
|
||||
s.fromObj({ priv: priv});
|
||||
var o = s.storeObj();
|
||||
|
|
Loading…
Reference in New Issue