Socket
Socket
Sign inDemoInstall

bcoin-tx

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bcoin-tx - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

5

index.js

@@ -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 @@ };

6

package.json
{
"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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc