Browse Source

remove PeerManager exception, no necesary anymore

patch-2
Matias Alejo Garcia 11 years ago
parent
commit
711ba6d9a8
  1. 2
      WalletKey.js
  2. 4
      examples/example.html

2
WalletKey.js

@ -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 = {

4
examples/example.html

@ -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…
Cancel
Save