Skip to content

Commit 05f423c

Browse files
Mikerahvasco-santos
authored andcommitted
Updated protobuf files for floodsub (#70)
* chore: cleaned up topic descriptor protobuf * feat: updated rpc protobuf to current spec * chore: fixed typo in topic descriptor protobuf
1 parent 9fc4be5 commit 05f423c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/message/rpc.proto.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ message RPC {
1313
optional bytes from = 1;
1414
optional bytes data = 2;
1515
optional bytes seqno = 3;
16-
repeated string topicIDs = 4;
16+
repeated string topicIDs = 4;
17+
optional bytes signature = 5;
18+
optional bytes key = 6;
1719
}
1820
}`

src/message/topic-descriptor.proto.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
'use strict'
22
module.exports = `
3-
// topicCID = cid(merkledag_protobuf(topicDescriptor)); (not the topic.name)
43
message TopicDescriptor {
54
optional string name = 1;
65
optional AuthOpts auth = 2;
7-
optional EncOpts enc = 2;
6+
optional EncOpts enc = 3;
87
98
message AuthOpts {
109
optional AuthMode mode = 1;

0 commit comments

Comments
 (0)