Library for low-level communication with TREZOR.
Intended as a "building block" for other packages - it is used in trezor.js and chrome extension.
You probably don't want to use this package directly. For communication with Trezor with a more high-level API, use trezor.js.
How to use
Use like this:
var Link = ;var LowlevelTransport = LinkLowlevel;var NodeHidPlugin = LinkNodeHid;var link = ;var config =;return link;
Source is annotated with Flow types, so it's more obvious what is going on from source code.
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.