bitexchange-link
Library for low-level communication with BitExchange Hardware Wallet.
Intended as a "building block" for other packages - it is used in bitexchange.js and chrome extension.
You probably don't want to use this package directly. For communication with BitExchange with a more high-level API, use bitexchange.js.
Packages
We have three different npm packages for different usecases, unfortunately.
require('bitexchange-link')
for browserrequire('bitexchange-link-node')
for node.js (and electron apps)require('bitexchange-link-browser-extension')
for browser extensions
How to use
Use like this (in node):
var Link = ;var LowlevelTransport = LinkLowlevel;var NodeHidPlugin = LinkNodeHid; var link = ; // for simple config load; you can also load by file API from a disk without node-fetchvar fetch = ; var config = ; return link;
Notes
Source is annotated with Flow types, so it's more obvious what is going on from source code.
Flow
If you want to use flow for typechecking, just include the file as normally, it will automatically use the included flow file. However, you need to add flowtype/*.js
to your [libs]
(or copy it yourself from flow-typed repository), and probably libs from flowconfig.
License
LGPLv3
- (C) 2015 Karel Bilek (SatoshiLabs) kb@karelbilek.com
- (C) 2014 Mike Tsao mike@sowbug.com
- (C) 2014 Liz Fong-Jones lizf@google.com
- (C) 2015 William Wolf throughnothing@gmail.com