diff --git a/ud/udMessages.pb.go b/ud/udMessages.pb.go index 5004b047949f494c61bf8f3402d8894e9d050bf7..2e2bd66e6f220f12507ea9f9ff6e255974d89d67 100644 --- a/ud/udMessages.pb.go +++ b/ud/udMessages.pb.go @@ -8,8 +8,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.23.0 -// protoc v3.13.0 +// protoc-gen-go v1.25.0 +// protoc (unknown) // source: udMessages.proto package ud @@ -96,8 +96,8 @@ type Contact struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserID [][]byte `protobuf:"bytes,1,rep,name=userID,proto3" json:"userID,omitempty"` - PubKey [][]byte `protobuf:"bytes,2,rep,name=pubKey,proto3" json:"pubKey,omitempty"` + UserID []byte `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` + PubKey []byte `protobuf:"bytes,2,opt,name=pubKey,proto3" json:"pubKey,omitempty"` TrigFacts []*HashFact `protobuf:"bytes,3,rep,name=trigFacts,proto3" json:"trigFacts,omitempty"` } @@ -133,14 +133,14 @@ func (*Contact) Descriptor() ([]byte, []int) { return file_udMessages_proto_rawDescGZIP(), []int{1} } -func (x *Contact) GetUserID() [][]byte { +func (x *Contact) GetUserID() []byte { if x != nil { return x.UserID } return nil } -func (x *Contact) GetPubKey() [][]byte { +func (x *Contact) GetPubKey() []byte { if x != nil { return x.PubKey } @@ -163,7 +163,7 @@ type SearchSend struct { // PublicKey used in the registration Fact []*HashFact `protobuf:"bytes,1,rep,name=fact,proto3" json:"fact,omitempty"` // ID of the session used to create this session - CommID int32 `protobuf:"varint,2,opt,name=commID,proto3" json:"commID,omitempty"` + CommID int64 `protobuf:"varint,2,opt,name=commID,proto3" json:"commID,omitempty"` } func (x *SearchSend) Reset() { @@ -205,7 +205,7 @@ func (x *SearchSend) GetFact() []*HashFact { return nil } -func (x *SearchSend) GetCommID() int32 { +func (x *SearchSend) GetCommID() int64 { if x != nil { return x.CommID } @@ -220,7 +220,7 @@ type SearchResponse struct { // ID of the session created Contacts []*Contact `protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"` - CommID int32 `protobuf:"varint,2,opt,name=commID,proto3" json:"commID,omitempty"` + CommID int64 `protobuf:"varint,2,opt,name=commID,proto3" json:"commID,omitempty"` } func (x *SearchResponse) Reset() { @@ -262,7 +262,7 @@ func (x *SearchResponse) GetContacts() []*Contact { return nil } -func (x *SearchResponse) GetCommID() int32 { +func (x *SearchResponse) GetCommID() int64 { if x != nil { return x.CommID } @@ -275,8 +275,8 @@ type LookupSend struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserID [][]byte `protobuf:"bytes,1,rep,name=userID,proto3" json:"userID,omitempty"` - CommID int32 `protobuf:"varint,2,opt,name=commID,proto3" json:"commID,omitempty"` + UserID []byte `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` + CommID int64 `protobuf:"varint,2,opt,name=commID,proto3" json:"commID,omitempty"` } func (x *LookupSend) Reset() { @@ -311,14 +311,14 @@ func (*LookupSend) Descriptor() ([]byte, []int) { return file_udMessages_proto_rawDescGZIP(), []int{4} } -func (x *LookupSend) GetUserID() [][]byte { +func (x *LookupSend) GetUserID() []byte { if x != nil { return x.UserID } return nil } -func (x *LookupSend) GetCommID() int32 { +func (x *LookupSend) GetCommID() int64 { if x != nil { return x.CommID } @@ -331,8 +331,8 @@ type LookupResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - PubKey [][]byte `protobuf:"bytes,1,rep,name=pubKey,proto3" json:"pubKey,omitempty"` - CommID int32 `protobuf:"varint,2,opt,name=commID,proto3" json:"commID,omitempty"` + PubKey []byte `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"` + CommID int64 `protobuf:"varint,2,opt,name=commID,proto3" json:"commID,omitempty"` } func (x *LookupResponse) Reset() { @@ -367,14 +367,14 @@ func (*LookupResponse) Descriptor() ([]byte, []int) { return file_udMessages_proto_rawDescGZIP(), []int{5} } -func (x *LookupResponse) GetPubKey() [][]byte { +func (x *LookupResponse) GetPubKey() []byte { if x != nil { return x.PubKey } return nil } -func (x *LookupResponse) GetCommID() int32 { +func (x *LookupResponse) GetCommID() int64 { if x != nil { return x.CommID } @@ -390,8 +390,8 @@ var file_udMessages_proto_rawDesc = []byte{ 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x68, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, - 0x49, 0x44, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, - 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, + 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, + 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x09, 0x74, 0x72, 0x69, 0x67, 0x46, 0x61, 0x63, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x46, 0x61, 0x63, 0x74, 0x52, 0x09, 0x74, 0x72, @@ -399,20 +399,20 @@ var file_udMessages_proto_rawDesc = []byte{ 0x68, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x23, 0x0a, 0x04, 0x66, 0x61, 0x63, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x46, 0x61, 0x63, 0x74, 0x52, 0x04, 0x66, 0x61, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, - 0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, + 0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x22, 0x54, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, - 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x22, 0x3c, 0x0a, 0x0a, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x16, - 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x16, + 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x22, 0x40, 0x0a, 0x0e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x4b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, - 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, + 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x42, 0x04, 0x5a, 0x02, 0x75, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } diff --git a/ud/udMessages.proto b/ud/udMessages.proto index 9cd441c1e7bf5e54cdc3583c1650a1732028b844..ce6877d22d93ee887cc1cec37c52e78e85cd006f 100644 --- a/ud/udMessages.proto +++ b/ud/udMessages.proto @@ -20,8 +20,8 @@ message HashFact { // Describes a user lookup result. The ID, public key, and the // facts inputted that brought up this user. message Contact { - repeated bytes userID = 1; - repeated bytes pubKey = 2; + bytes userID = 1; + bytes pubKey = 2; repeated HashFact trigFacts = 3; } @@ -42,12 +42,12 @@ message SearchResponse { // Message sent to UDB for looking up a user message LookupSend { - repeated bytes userID = 1; + bytes userID = 1; int64 commID = 2; } // Message sent from UDB for looking up a user message LookupResponse { - repeated bytes pubKey = 1; + bytes pubKey = 1; int64 commID = 2; } \ No newline at end of file