Merge pull request #506 from libp2p/marco/proto3

Recommend proto3
This commit is contained in:
Marco Munizaga
2023-01-23 10:24:22 -08:00
committed by GitHub
13 changed files with 33 additions and 3 deletions

View File

@@ -140,6 +140,8 @@ We start the description of the Wire format by illustrating a possible flow scen
Every message in the relay protocol uses the following protobuf:
```
syntax = "proto2";
message CircuitRelay {
enum Status {

View File

@@ -347,7 +347,8 @@ The voucher itself is a [Signed Envelope](../RFC/0002-signed-envelopes.md).
The envelope domain is `libp2p-relay-rsvp` and uses the multicodec code `0x0302`.
The payload of the envelope has the following form, in canonicalized protobuf format:
```
```protobuf
syntax = "proto2";
message Voucher {
required bytes relay = 1;
required bytes peer = 2;
@@ -363,7 +364,8 @@ The wire representation is canonicalized, where elements of the message are writ
## Protobuf
```
```protobuf
syntax = "proto2";
message HopMessage {
enum Type {
RESERVE = 0;