Socket
Socket
Sign inDemoInstall

ledger-cosmos-js

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ledger-cosmos-js

Node API for Ledger Nano S Cosmos App


Version published
Weekly downloads
6.2K
increased by9.82%
Maintainers
1
Weekly downloads
 
Created
Source

ledger-cosmos-js

License

This package provides a basic client library to communicate with a Tendermint/Cosmos App running in a Ledger Nano S

There are two running modes:

  • HID: Direct access via HID. This can be used from a backend, node.js, etc.
  • U2F: This allows access to the device from the browser (client side)

Testing

Install all dependencies by running

npm install

There are a few useful scripts:

  • npm test: Will run HID tests

  • npm browserify: Will generate js files that are necessary for U2F/browser integration

  • npm browserify-test: Will generate js files that are necessary for browser testing. After executing this script. You can access tests/browser/index.html to run browser tests.

Warning: You need to setup a webserver and point it to index.html. U2F communication requires an https connection.

How to run browser tests

First you need to deploy the javascript files. Run the following:

npm run browserify
npm run browserify-test

now go to the test directory and run caddy

cd tests/browser
caddy

you should see something like:

Activating privacy features... done.
https://localhost:2020
WARNING: File descriptor limit 1024 is too low for production servers. At least 8192 is recommended. Fix with `ulimit -n 8192`.

Open your browser at https://localhost:2020 and you can now run the test

Keywords

FAQs

Package last updated on 29 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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