Replaced Crypto.util and util (was a typo) with conv

This commit is contained in:
vub 2013-10-08 05:42:28 -04:00
parent 38ea108183
commit f95b08a576
4 changed files with 9 additions and 8 deletions

View file

@ -98,7 +98,7 @@ var Wallet = function () {
var pubs = [];
for (var i = 0; i < keys.length; i++) {
pubs.push(Crypto.util.bytesToHex(keys[i].getPub()));
pubs.push(conv.bytesToHex(keys[i].getPub()));
}
return pubs;
@ -329,7 +329,7 @@ Wallet.prototype.clearTransactions = function () {
* Check to see if a pubKeyHash belongs to this wallet.
*/
Wallet.prototype.hasHash = function (hash) {
if (Bitcoin.Util.isArray(hash)) hash = Crypto.util.bytesToHex(hash);
if (Bitcoin.Util.isArray(hash)) hash = conv.bytesToHex(hash);
// TODO: Just create an object with hashes as keys for faster lookup
for (var k = 0; k < this.addressHashes.length; k++) {