@ledgerhq/hw-app-btc
Advanced tools
Comparing version 4.32.0 to 4.33.4
@@ -903,8 +903,21 @@ "use strict"; | ||
for (var i = 0; i < numberInputs; i++) { | ||
var _prevout = transaction.slice(offset, offset + 36); | ||
offset += 36; | ||
varint = this.getVarint(transaction, offset); | ||
offset += varint[1]; | ||
var _script = transaction.slice(offset, offset + varint[0]); | ||
offset += varint[0]; | ||
var _prevout = transaction.slice(offset, offset + 32); | ||
offset += 32; | ||
//Tree field | ||
if (isDecred) { | ||
offset += 1; | ||
} | ||
var prevOutIndex = transaction.slice(offset, offset + 4); | ||
offset += 4; | ||
_prevout = Buffer.concat([_prevout, prevOutIndex]); | ||
var _script = void 0; | ||
//No script for decred, it has a witness | ||
if (!isDecred) { | ||
varint = this.getVarint(transaction, offset); | ||
offset += varint[1]; | ||
_script = transaction.slice(offset, offset + varint[0]); | ||
offset += varint[0]; | ||
} | ||
var _sequence3 = transaction.slice(offset, offset + 4); | ||
@@ -911,0 +924,0 @@ offset += 4; |
{ | ||
"name": "@ledgerhq/hw-app-btc", | ||
"version": "4.32.0", | ||
"version": "4.33.4", | ||
"description": "Ledger Hardware Wallet Bitcoin Application API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1110,8 +1110,21 @@ //@flow | ||
for (let i = 0; i < numberInputs; i++) { | ||
const prevout = transaction.slice(offset, offset + 36); | ||
offset += 36; | ||
varint = this.getVarint(transaction, offset); | ||
offset += varint[1]; | ||
const script = transaction.slice(offset, offset + varint[0]); | ||
offset += varint[0]; | ||
let prevout = transaction.slice(offset, offset + 32); | ||
offset += 32; | ||
//Tree field | ||
if (isDecred) { | ||
offset += 1; | ||
} | ||
const prevOutIndex = transaction.slice(offset, offset + 4); | ||
offset += 4; | ||
prevout = Buffer.concat([prevout, prevOutIndex]); | ||
let script; | ||
//No script for decred, it has a witness | ||
if (!isDecred) { | ||
varint = this.getVarint(transaction, offset); | ||
offset += varint[1]; | ||
script = transaction.slice(offset, offset + varint[0]); | ||
offset += varint[0]; | ||
} | ||
const sequence = transaction.slice(offset, offset + 4); | ||
@@ -1118,0 +1131,0 @@ offset += 4; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
230974
2413