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

@ledgerhq/hw-app-btc

Package Overview
Dependencies
Maintainers
9
Versions
437
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 4.33.5 to 4.33.6

14

lib/Btc.js

@@ -626,3 +626,6 @@ "use strict";

return (0, _utils.doIf)(!!expiryHeight && !isDecred, function () {
return _this5.signTransaction("", undefined, SIGHASH_ALL, expiryHeight);
return (
// FIXME: I think we should always pass lockTime here.
_this5.signTransaction("", lockTime, SIGHASH_ALL, expiryHeight)
);
});

@@ -691,2 +694,9 @@ }).then(function () {

}
// FIXME: In ZEC or KMD sapling lockTime is serialized before expiryHeight.
// expiryHeight is used only in overwinter/sapling so I moved lockTimeBuffer here
// and it should not break other coins because expiryHeight is false for them.
// Don't know about Decred though.
result = Buffer.concat([result, lockTimeBuffer]);
if (expiryHeight) {

@@ -696,4 +706,2 @@ result = Buffer.concat([result, targetTransaction.nExpiryHeight || Buffer.alloc(0), targetTransaction.extraData || Buffer.alloc(0)]);

result = Buffer.concat([result, lockTimeBuffer]);
if (isDecred) {

@@ -700,0 +708,0 @@ var decredWitness = Buffer.from([targetTransaction.inputs.length]);

{
"name": "@ledgerhq/hw-app-btc",
"version": "4.33.5",
"version": "4.33.6",
"description": "Ledger Hardware Wallet Bitcoin Application API",

@@ -5,0 +5,0 @@ "keywords": [

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

doIf(!!expiryHeight && !isDecred, () =>
this.signTransaction("", undefined, SIGHASH_ALL, expiryHeight)
// FIXME: I think we should always pass lockTime here.
this.signTransaction("", lockTime, SIGHASH_ALL, expiryHeight)
)

@@ -860,2 +861,9 @@ )

}
// FIXME: In ZEC or KMD sapling lockTime is serialized before expiryHeight.
// expiryHeight is used only in overwinter/sapling so I moved lockTimeBuffer here
// and it should not break other coins because expiryHeight is false for them.
// Don't know about Decred though.
result = Buffer.concat([result, lockTimeBuffer]);
if (expiryHeight) {

@@ -869,4 +877,2 @@ result = Buffer.concat([

result = Buffer.concat([result, lockTimeBuffer]);
if (isDecred) {

@@ -873,0 +879,0 @@ let decredWitness = Buffer.from([targetTransaction.inputs.length]);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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