Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dashincubator/blocktx

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dashincubator/blocktx - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

34

blocktx.js

@@ -203,22 +203,6 @@ (function (exports) {

return {
txId:
input.txId ??
//@ts-ignore
input.txid,
prevIndex:
input.prevIndex ??
//@ts-ignore
input.index ??
//@ts-ignore
input.vout,
pubKeyHash:
input.pubKeyHash ??
//@ts-ignore
input.pubkeyhash ??
//@ts-ignore
input.pubkeyHash,
sigHashType:
input.sigHashType ??
//@ts-ignore
input.sighashType,
txId: input.txId,
prevIndex: input.prevIndex,
pubKeyHash: input.pubKeyHash,
sigHashType: input.sigHashType,
subscript: subscript,

@@ -339,4 +323,4 @@ };

assertHex(output.pubkeyhash, `output[${i}].pubkeyhash`);
let lockScript = `${PKH_SCRIPT_SIZE}${OP_DUP}${OP_HASH160}${PKH_SIZE}${output.pubkeyhash}${OP_EQUALVERIFY}${OP_CHECKSIG}`;
assertHex(output.pubKeyHash, `output[${i}].pubKeyHash`);
let lockScript = `${PKH_SCRIPT_SIZE}${OP_DUP}${OP_HASH160}${PKH_SIZE}${output.pubKeyHash}${OP_EQUALVERIFY}${OP_CHECKSIG}`;
tx.push(lockScript);

@@ -678,3 +662,3 @@ });

* @prop {String} publicKey - hex-encoded public key (typically starts with a 0x02 or 0x03 prefix)
* @prop {String} [pubKeyHash] - the 20-byte pubkeyhash (address without magic byte or checksum)
* @prop {String} [pubKeyHash] - the 20-byte pubKeyHash (address without magic byte or checksum)
* @prop {Number} sigHashType - typically 0x01 (SIGHASH_ALL)

@@ -696,3 +680,3 @@ */

* @prop {String} [publicKey] - hex-encoded public key (typically starts with a 0x02 or 0x03 prefix)
* @prop {String} [pubKeyHash] - the 20-byte pubkeyhash (address without magic byte or checksum)
* @prop {String} [pubKeyHash] - the 20-byte pubKeyHash (address without magic byte or checksum)
* @prop {Number} sigHashType - typically 0x01 (SIGHASH_ALL)

@@ -707,3 +691,3 @@ */

* @typedef TxOutput
* @prop {String} pubkeyhash - payaddr's raw hex value (decoded, not Base58Check)
* @prop {String} pubKeyHash - payaddr's raw hex value (decoded, not Base58Check)
* @prop {Number} units - the number of smallest units of the currency (duffs / satoshis)

@@ -710,0 +694,0 @@ */

{
"name": "@dashincubator/blocktx",
"version": "0.8.0",
"version": "0.8.1",
"description": "Create Blockchain transactions with Vanilla JS (0 deps, cross-platform)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -98,3 +98,3 @@ # [@dashincubator/blocktx](https://github.com/dashhive/blocktx.js)

{
pubkeyhash: "1e0a6ef6085bb8af443a9e7f8941e61deb09fb54",
pubKeyHash: "1e0a6ef6085bb8af443a9e7f8941e61deb09fb54",
units: 5150,

@@ -142,3 +142,3 @@ },

// "XdRgbwH1LEfFQUVY2DnmsVxfo33CRDhydj"
pubkeyhash: "1e0a6ef6085bb8af443a9e7f8941e61deb09fb54",
pubKeyHash: "1e0a6ef6085bb8af443a9e7f8941e61deb09fb54",
units: 5150,

@@ -179,3 +179,3 @@ },

{
"pubkeyhash": "1e0a6ef6085bb8af443a9e7f8941e61deb09fb54",
"pubKeyHash": "1e0a6ef6085bb8af443a9e7f8941e61deb09fb54",
"units": 5150

@@ -182,0 +182,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