Comparing version 1.3.1 to 1.4.0
@@ -52,4 +52,3 @@ var bn = require('bn.js'); | ||
TX.prototype.hash = function hash(enc) { | ||
//var h = utils.dsha256(this.render()); | ||
var h = utils.dsha256(utils.toArray(this._raw)) | ||
var h = utils.dsha256(this.render()) | ||
return enc === 'hex' ? utils.toHex(h) : h; | ||
@@ -59,3 +58,3 @@ }; | ||
TX.prototype.txid = function txid(enc) { | ||
var id = utils.dsha256(utils.toArray(this._raw)).reverse() | ||
var id = utils.dsha256(this.render().reverse()) | ||
return enc === 'hex' ? utils.toHex(id) : id; | ||
@@ -62,0 +61,0 @@ }; |
{ | ||
"name": "bcoin-tx", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "Bitcoin transaction object", | ||
@@ -21,4 +21,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"bcoin-protocol": "^1.3.0", | ||
"bcoin-script": "^1.0.0", | ||
"bcoin-protocol": "^1.4.0", | ||
"bcoin-script": "^2.0.0", | ||
"bcoin-utils": "^1.1.0", | ||
@@ -25,0 +25,0 @@ "bn.js": "^0.15.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11264
263
- Removedbcoin-script@1.0.0(transitive)
Updatedbcoin-protocol@^1.4.0
Updatedbcoin-script@^2.0.0