Skip to content

Files

Latest commit

 

History

History
16 lines (9 loc) · 1.15 KB

index.md

File metadata and controls

16 lines (9 loc) · 1.15 KB

Communication

Note: In this section we describe the internal functioning of the communication protocol. If you wish to implement Onekey support you should use Connect or python library, which will do all this hard work for you.

We use Protobuf v2 for host-device communication. The communication cycle is very simple, Onekey receives a message (request), acts on it and responds with another one (response). Onekey on its own is incapable of initiating the communication.

Definitions

Protobuf messages are defined in the Common project, which is part of this monorepo. This repository is also exported to onekey/trezor-common to be used by third parties, which prefer not to include the whole monorepo. That copy is read-only mirror and all changes are happening in this monorepo.

Notable topics