dPoS Ledger
This library is meant to be used with the corresponding Ledger C implementation. Given the end-user have:
- His ledger connected & unlocked;
- the corresponding app open;
This JS library will serve as an interface between your code and the hardware wallet handling the communication protocol.
Documentation
Documention is available here.
Environment Support
This library does not make any assumption on the environment on which it is being consumed.
Both Node.JS and minified Browser version of this library are provided.
NodeJS
To consume this library through an app running under the NodeVM, you'll need to use the @ledgerhq/hw-transport-node-hid transport.
This library, and the ledger app, have been developed and tested with hw-transport-node-hid@4.7.6
.
Browser
The Browser version currently weights 32KB
(non gzipped). It can be used both via webpack or directly including it in your page just like any other script.
This library, and the ledger app, have been tested with @ledgerhq/hw-transport-node-hid@4.7.3
as Transport.
Platform Indipendent Example
;;;; ;if isBrowser else if isNode else transportMethod.create .thennew DposLedgernew CommHandlertransport .then;
Thanks
Any improvement/suggestion is very welcome :)