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
8
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.32.0 to 4.33.4

25

lib/Btc.js

@@ -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

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