Make existing protocols explicit about proto2

This commit is contained in:
Marco Munizaga
2023-01-20 17:13:13 -08:00
parent a920e7aa6d
commit c733210b3a
12 changed files with 25 additions and 2 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;