New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ledgerhq/hw-app-btc

Package Overview
Dependencies
Maintainers
7
Versions
440
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/hw-app-btc - npm Package Compare versions

Comparing version

to
4.12.0-beta.fd04ab6f

9

lib/Btc.js

@@ -476,7 +476,8 @@ "use strict";

var sigHashType = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : SIGHASH_ALL;
var segwit = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
var _this5 = this;
var segwit = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
var initialTimestamp = arguments[7];
var forkid = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : "";

@@ -553,3 +554,3 @@ var hasTimestamp = initialTimestamp !== undefined;

}).then(function () {
return (0, _utils.doIf)(segwit, function () {
return (0, _utils.doIf)(segwit || forkid !== "", function () {
return (

@@ -578,4 +579,4 @@ // Do the first run with all inputs

}
return _this5.startUntrustedHashTransactionInput(!segwit && firstRun, pseudoTX, pseudoTrustedInputs, segwit).then(function () {
return (0, _utils.doIf)(!segwit, function () {
return _this5.startUntrustedHashTransactionInput(!segwit && forkid === "" && firstRun, pseudoTX, pseudoTrustedInputs, segwit).then(function () {
return (0, _utils.doIf)(!segwit && forkid === "", function () {
return (0, _utils.doIf)(!resuming && typeof changePath != "undefined", function () {

@@ -582,0 +583,0 @@ return _this5.provideOutputFullChangePath(changePath);

{
"name": "@ledgerhq/hw-app-btc",
"version": "4.11.1",
"version": "4.12.0-beta.fd04ab6f",
"description": "Ledger Hardware Wallet Bitcoin Application API",

@@ -28,3 +28,3 @@ "keywords": [

"dependencies": {
"@ledgerhq/hw-transport": "^4.7.3",
"@ledgerhq/hw-transport": "^4.12.0-beta.fd04ab6f",
"create-hash": "^1.1.3"

@@ -31,0 +31,0 @@ },

@@ -501,3 +501,4 @@ //@flow

segwit?: boolean = false,
initialTimestamp?: number
initialTimestamp?: number,
forkid?: ""| "abc" | "gold" = ""
) {

@@ -594,3 +595,3 @@ const hasTimestamp = initialTimestamp !== undefined;

.then(() =>
doIf(segwit, () =>
doIf(segwit || forkid !== "", () =>
// Do the first run with all inputs

@@ -630,3 +631,3 @@ this.startUntrustedHashTransactionInput(

return this.startUntrustedHashTransactionInput(
!segwit && firstRun,
(!segwit && forkid === "" ) && firstRun,
pseudoTX,

@@ -637,3 +638,3 @@ pseudoTrustedInputs,

.then(() =>
doIf(!segwit, () =>
doIf((!segwit && forkid === "" ), () =>
doIf(!resuming && typeof changePath != "undefined", () => {

@@ -640,0 +641,0 @@ return this.provideOutputFullChangePath(changePath);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet