@ledgerhq/hw-app-btc
Advanced tools
Comparing version 4.3.0-beta.954e9e07 to 4.3.0-beta.bff98635
@@ -11,2 +11,6 @@ "use strict"; | ||
var _assign = require("babel-runtime/core-js/object/assign"); | ||
var _assign2 = _interopRequireDefault(_assign); | ||
var _regenerator = require("babel-runtime/regenerator"); | ||
@@ -310,3 +314,3 @@ | ||
} else { | ||
scriptBlocks.push(Buffer.concat([input.script.slice(offset, offset + blockSize), input.sequence ? input.sequence : Buffer.alloc(0)])); | ||
scriptBlocks.push(Buffer.concat([input.script.slice(offset, offset + blockSize), input.sequence])); | ||
} | ||
@@ -504,5 +508,8 @@ offset += blockSize; | ||
return getTrustedInputCall(input[1], input[0]).then(function (trustedInput) { | ||
var sequence = Buffer.alloc(4); | ||
sequence.writeUInt32LE(input.length >= 4 && typeof input[3] === "number" ? input[3] : DEFAULT_SEQUENCE, 0); | ||
trustedInputs.push({ | ||
trustedInput: true, | ||
value: Buffer.from(trustedInput, "hex") | ||
value: Buffer.from(trustedInput, "hex"), | ||
sequence: sequence | ||
}); | ||
@@ -564,3 +571,3 @@ }); | ||
var script = inputs[i].length >= 3 && typeof inputs[i][2] === "string" ? Buffer.from(inputs[i][2], "hex") : !segwit ? regularOutputs[i].script : Buffer.concat([Buffer.from([OP_PUSHDATA1, OP_HASH160, HASH_SIZE]), _this5.hashPublicKey(publicKeys[i]), Buffer.from([OP_EQUALVERIFY, OP_CHECKSIG])]); | ||
var pseudoTX = targetTransaction; | ||
var pseudoTX = (0, _assign2.default)({}, targetTransaction); | ||
var pseudoTrustedInputs = segwit ? [trustedInputs[i]] : trustedInputs; | ||
@@ -567,0 +574,0 @@ if (segwit) { |
{ | ||
"name": "@ledgerhq/hw-app-btc", | ||
"version": "4.3.0-beta.954e9e07", | ||
"version": "4.3.0-beta.bff98635", | ||
"description": "Ledger Hardware Wallet Bitcoin Application API", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ledgerhq/hw-transport": "^4.3.0-beta.954e9e07", | ||
"@ledgerhq/hw-transport": "^4.3.0-beta.bff98635", | ||
"create-hash": "^1.1.3" | ||
@@ -31,0 +31,0 @@ }, |
@@ -305,3 +305,3 @@ //@flow | ||
input.script.slice(offset, offset + blockSize), | ||
input.sequence ? input.sequence : Buffer.alloc(0) | ||
input.sequence | ||
]) | ||
@@ -512,5 +512,13 @@ ); | ||
getTrustedInputCall(input[1], input[0]).then(trustedInput => { | ||
let sequence = Buffer.alloc(4); | ||
sequence.writeUInt32LE( | ||
input.length >= 4 && typeof input[3] === "number" | ||
? input[3] | ||
: DEFAULT_SEQUENCE, | ||
0 | ||
); | ||
trustedInputs.push({ | ||
trustedInput: true, | ||
value: Buffer.from(trustedInput, "hex") | ||
value: Buffer.from(trustedInput, "hex"), | ||
sequence | ||
}); | ||
@@ -595,3 +603,3 @@ }) | ||
]); | ||
let pseudoTX = targetTransaction; | ||
let pseudoTX = Object.assign({}, targetTransaction); | ||
let pseudoTrustedInputs = segwit ? [trustedInputs[i]] : trustedInputs; | ||
@@ -598,0 +606,0 @@ if (segwit) { |
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
195625
2276