1️⃣-Message Format

Overview

All messages sent between nodes have headers. The initial handshake messages are sent unencrypted, and all other messages are encrypted and authenticated using the keys that are generated during the initial handshake.

All messages payloads are serialized using Protocol Buffers.

Protocol buffers are a language-neutral, platform-neutral, extensible mechanism for serializing structured data. You can find documentation on the Google Developers site.

To develop with protocol buffers you will need to install the protocol buffer compiler (to compile .proto files) and the protocol buffer runtime for your chosen programming language.

Protocol buffers currently support development in Java, Python, Go, Rust, C, C++, Objective-C, C#, Dart, Ruby, Perl, Haskell, Javascript, and more.

The unencrypted message

Magic values

The encrypted message

Ciphertext pre-encryption format

Last updated