@@ -13,16 +13,16 @@ import "countries.proto";
1313//Some fields are optional as they aren't needed in all situations.
1414message Node {
1515 required bytes guid = 1 ;
16- required bytes signedPublicKey = 2 ; // <64 byte signature><32 byte public key>
17- required NATType natType = 3 ;
18- required IPAddress nodeAddress = 4 ;
19- optional IPAddress relayAddress = 5 ;
20- optional bool vendor = 6 [default = false ];
21-
22- message IPAddress {
23- required string ip = 1 ;
24- required uint32 port = 2 ;
25- }
16+ required bytes signedPublicKey = 2 ; // <64 byte signature><32 byte public key>
17+ required NATType natType = 3 ;
18+ required IPAddress nodeAddress = 4 ;
19+ optional IPAddress relayAddress = 5 ;
20+ optional bool vendor = 6 [default = false ];
21+
22+ message IPAddress {
23+ required string ip = 1 ;
24+ required uint32 port = 2 ;
25+ }
2626}
2727
2828enum NATType {
@@ -36,9 +36,9 @@ enum NATType {
3636//Typically a list of these will be returned for any given keyword.
3737message Value {
3838 optional bytes keyword = 1 ;
39- required bytes valueKey = 2 ;
40- required bytes serializedData = 3 ;
41- required uint32 ttl = 4 ;
39+ required bytes valueKey = 2 ;
40+ required bytes serializedData = 3 ;
41+ required uint32 ttl = 4 ;
4242}
4343
4444//A list of these is sent in an INV packet
@@ -73,23 +73,23 @@ message Profile {
7373 optional bytes avatar_hash = 22 ;
7474 optional bytes header_hash = 23 ;
7575
76- // Social media account for the profile
76+ // Social media account for the profile
7777 message SocialAccount {
78- required SocialType type = 1 ;
79- required string username = 2 ;
80- optional string proof_url = 3 ;
81-
82- enum SocialType {
83- FACEBOOK = 1 ;
84- TWITTER = 2 ;
85- INSTAGRAM = 3 ;
86- SNAPCHAT = 4 ;
87- }
78+ required SocialType type = 1 ;
79+ required string username = 2 ;
80+ optional string proof_url = 3 ;
81+
82+ enum SocialType {
83+ FACEBOOK = 1 ;
84+ TWITTER = 2 ;
85+ INSTAGRAM = 3 ;
86+ SNAPCHAT = 4 ;
87+ }
8888 }
8989
9090 message PublicKey {
91- required bytes public_key = 1 ;
92- required bytes signature = 2 ;
91+ required bytes public_key = 1 ;
92+ required bytes signature = 2 ;
9393 }
9494}
9595
@@ -163,4 +163,4 @@ message PlaintextMessage {
163163 ORDER_CONFIRMATION = 4 ;
164164 RECEIPT = 5 ;
165165 }
166- }
166+ }
0 commit comments