Skip to content

Commit

Permalink
Updated protobuf files for floodsub (#70)
Browse files Browse the repository at this point in the history
* chore: cleaned up topic descriptor protobuf

* feat: updated rpc protobuf to current spec

* chore: fixed typo in topic descriptor protobuf
  • Loading branch information
Mikerah authored and vasco-santos committed Feb 14, 2019
1 parent 9fc4be5 commit 05f423c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/message/rpc.proto.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ message RPC {
optional bytes from = 1;
optional bytes data = 2;
optional bytes seqno = 3;
repeated string topicIDs = 4;
repeated string topicIDs = 4;
optional bytes signature = 5;
optional bytes key = 6;
}
}`
3 changes: 1 addition & 2 deletions src/message/topic-descriptor.proto.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
'use strict'
module.exports = `
// topicCID = cid(merkledag_protobuf(topicDescriptor)); (not the topic.name)
message TopicDescriptor {
optional string name = 1;
optional AuthOpts auth = 2;
optional EncOpts enc = 2;
optional EncOpts enc = 3;
message AuthOpts {
optional AuthMode mode = 1;
Expand Down

0 comments on commit 05f423c

Please sign in to comment.