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

@ledgerhq/hw-app-str

Package Overview
Dependencies
Maintainers
7
Versions
339
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 4.2.0 to 4.3.0-beta.d226ed3b

flow-typed/npm/@ledgerhq/hw-transport_vx.x.x.js

13

lib/Str.js

@@ -65,2 +65,8 @@ "use strict";

transport.setScrambleKey("l0v");
var self = this;
var _arr = ["getAppConfiguration", "getPublicKey", "signTransaction", "signHash"];
for (var _i = 0; _i < _arr.length; _i++) {
var methodName = _arr[_i];
self[methodName] = transport.globalLock(methodName, self[methodName], self);
}
}

@@ -177,3 +183,3 @@

// pre-v2 app version: fall back on hash signing
return _this.signHash(path, (0, _utils.hash)(transaction));
return _this.signHash_private(path, (0, _utils.hash)(transaction));
} else {

@@ -198,2 +204,7 @@ throw new Error("Transaction approval request was rejected");

value: function signHash(path, hash) {
return this.signHash_private(path, hash);
}
}, {
key: "signHash_private",
value: function signHash_private(path, hash) {
var pathElts = (0, _utils.splitPath)(path);

@@ -200,0 +211,0 @@ var buffer = Buffer.alloc(1 + pathElts.length * 4);

4

package.json
{
"name": "@ledgerhq/hw-app-str",
"version": "4.2.0",
"version": "4.3.0-beta.d226ed3b",
"description": "Ledger Hardware Wallet Stellar Application API",

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

"dependencies": {
"@ledgerhq/hw-transport": "^4.2.0",
"@ledgerhq/hw-transport": "^4.3.0-beta.d226ed3b",
"base32.js": "^0.1.0",

@@ -31,0 +31,0 @@ "crc": "^3.5.0",

@@ -58,2 +58,15 @@ /********************************************************************************

transport.setScrambleKey("l0v");
const self: Object = this;
for (let methodName of [
"getAppConfiguration",
"getPublicKey",
"signTransaction",
"signHash"
]) {
self[methodName] = transport.globalLock(
methodName,
self[methodName],
self
);
}
}

@@ -190,3 +203,3 @@

// pre-v2 app version: fall back on hash signing
return this.signHash(path, hash(transaction));
return this.signHash_private(path, hash(transaction));
} else {

@@ -208,2 +221,6 @@ throw new Error("Transaction approval request was rejected");

signHash(path: string, hash: Buffer): Promise<{ signature: Buffer }> {
return this.signHash_private(path, hash);
}
signHash_private(path: string, hash: Buffer): Promise<{ signature: Buffer }> {
let pathElts = splitPath(path);

@@ -210,0 +227,0 @@ let buffer = Buffer.alloc(1 + pathElts.length * 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