0.0.2 • Published 5 years ago

@abckey/protocol v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

NPM version

ABCKEY And TREZOR Protocol

Javascript

npm i @abckey/protocol

Usage

Protocol

Messages are sent in packets of 64 bytes.

First packet has the following structure:

offsetlengthtypecontents
03char3'$##' magic constant
32BE uint16_tnumerical types
54BE uint32_tmessage size
955uint8_t55first 55 bytes of message encoded in Protocol Buffers (padded with zeroes if shorter)

Following packets has the following structure:

offsetlengthtypecontents
01char1'$' magic constant
163uint8_t63following bytes of message encoded in Protocol Buffers (padded with zeroes if shorter)

License

MIT

0.0.2

5 years ago

0.0.1

5 years ago