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

ledgerco

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ledgerco - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

src/ledger-ripple.js

5

package.json
{
"name": "ledgerco",
"version": "1.1.2",
"version": "1.1.3",
"description": "Node API for Ledger Hardware Wallets (HW.1 / Nano / Nano S / Blue)",

@@ -40,4 +40,7 @@ "main": "./src/index.js",

"clean": "rm -f browser/ledger.js browser/ledger.min.js"
},
"browser": {
"node-hid": false
}
}

21

README.md

@@ -0,1 +1,3 @@

[![npm version](https://badge.fury.io/js/ledgerco.svg)](https://www.npmjs.com/package/ledgerco)
# ledger-node-js-api

@@ -13,5 +15,5 @@ Node and browser communication APIs for Ledger Nano / Nano S / Blue application

```javascript
ledger.comm_node.create_async().then(function(comm)) {
ledger.comm_node.create_async().then(function(comm) {
...
}
});
```

@@ -28,5 +30,5 @@

```javascript
ledger.comm_u2f.create_async().then(function(comm)) {
ledger.comm_u2f.create_async().then(function(comm) {
...
}
});
```

@@ -55,3 +57,2 @@

function(error) { console.log(error); });
);
```

@@ -64,3 +65,3 @@

var tx2 = btc.splitTransaction("...")
var tx2 = btc.splitTransaction("...");
```

@@ -91,3 +92,2 @@

function(error) { console.log(error); });
);
```

@@ -100,3 +100,3 @@

var outputScript = btc.serializeTransactionOutputs(tx1).toString('hex')
var outputScript = btc.serializeTransactionOutputs(tx1).toString('hex');

@@ -126,3 +126,2 @@ ```

function(error) { console.log(error); });
);
```

@@ -138,3 +137,2 @@

}).fail(function(ex) {console.log(ex);});
```

@@ -153,6 +151,5 @@

```javascript
eth.getAddress_async("44'/0'/0'/0").then(
eth.getAddress_async("44'/60'/0'/0'/0").then(
function(result) { console.log(result);}).fail(
function(error) { console.log(error); });
);
```

@@ -159,0 +156,0 @@

@@ -18,9 +18,12 @@ /********************************************************************************

var isNode = (typeof window === 'undefined');
var ledger = module.exports;
ledger.comm_node = require('./ledger-comm-node');
ledger.comm_u2f = require('./ledger-comm-u2f');
if (isNode) ledger.comm_node = require('./ledger-comm-node');
else ledger.comm_u2f = require('./ledger-comm-u2f');
ledger.btc = require('./ledger-btc');
ledger.eth = require('./ledger-eth');
ledger.ripple = require('./ledger-ripple');
module.exports = ledger;

@@ -203,3 +203,3 @@ /********************************************************************************

if (paddingSize != 0) {
padding = Buffer.alloc(paddingSize).fill(0);
var padding = Buffer.alloc(paddingSize).fill(0);
block = Buffer.concat([block, padding], block.length + paddingSize);

@@ -294,3 +294,3 @@ }

// build the response
if (this.timeout != 0) {
if (currentObject.timeout != 0) {
clearTimeout(exchangeTimeout);

@@ -301,3 +301,3 @@ }

.fail(function(err) {
if (this.timeout != 0) {
if (currentObject.timeout != 0) {
clearTimeout(exchangeTimeout);

@@ -304,0 +304,0 @@ }

@@ -21,2 +21,3 @@ /********************************************************************************

var Q = require('q');
var u2f = require('./u2f-api');

@@ -23,0 +24,0 @@ var Ledger3 = function(timeoutSeconds) {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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