0.0.2 • Published 4 years ago

@abckey/protocol v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 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

4 years ago

0.0.1

4 years ago