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

@trezor/utxo-lib

Package Overview
Dependencies
Maintainers
5
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trezor/utxo-lib - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "@trezor/utxo-lib",
"version": "0.1.0",
"version": "0.1.1",
"upstreamVersion": "1.7.0",

@@ -5,0 +5,0 @@ "description": "Client-side Bitcoin JavaScript library",

@@ -1201,7 +1201,19 @@ var Buffer = require('safe-buffer').Buffer

if (this.supportsJoinSplits()) {
var offset = 4 // header
if (this.isOverwinterCompatible()) {
offset += 4 // nVersionGroupId
}
offset += varuint.encodingLength(this.ins.length) // tx_in_count
offset += this.ins.reduce(function (sum, input) { return sum + 40 + varSliceSize(input.script) }, 0) // tx_in
offset += varuint.encodingLength(this.outs.length) // tx_out_count
offset += this.outs.reduce(function (sum, output) { return sum + 8 + varSliceSize(output.script) }, 0) // tx_out
offset += 4 // lock_time
if (this.isOverwinterCompatible()) {
offset += 4 // nExpiryHeight
}
var buffer = this.toBuffer()
var joinsplitByteLength = this.getJoinSplitByteLength()
var res = buffer.slice(buffer.length - joinsplitByteLength)
return res
return buffer.slice(offset)
}
if (this.isDashSpecialTransaction()) {

@@ -1213,2 +1225,3 @@ var extraDataLength = varuint.encode(this.extraPayload.length)

}
module.exports = Transaction
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