Renames util.js to crypto.js

This commit is contained in:
Daniel Cousens 2014-04-08 22:00:28 +10:00
parent a4c2cc6dd4
commit 81d9c8e759
7 changed files with 16 additions and 16 deletions

View file

@ -1,5 +1,5 @@
var Opcode = require('./opcode')
var util = require('./util')
var crypto = require('./crypto')
var convert = require('./convert')
var Address = require('./address')
var network = require('./network')
@ -144,10 +144,10 @@ Script.prototype.toScriptHash = function() {
}
if (outType == 'P2SH') {
return util.sha256ripe160(this.buffer)
return crypto.sha256ripe160(this.buffer)
}
return util.sha256ripe160(this.buffer)
return crypto.sha256ripe160(this.buffer)
}
//TODO: support testnet
@ -257,7 +257,7 @@ Script.prototype.simpleInPubKey = function() {
* This method is useful for indexing transactions.
*/
Script.prototype.simpleInHash = function() {
return util.sha256ripe160(this.simpleInPubKey())
return crypto.sha256ripe160(this.simpleInPubKey())
}
/**