Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
0c92ee0f
Commit
0c92ee0f
authored
Jul 13, 2021
by
Jonah Husson
Browse files
Options
Downloads
Patches
Plain Diff
add username to contact
parent
3165a3e4
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!23
Release
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ud/udMessages.pb.go
+31
-20
31 additions, 20 deletions
ud/udMessages.pb.go
ud/udMessages.proto
+3
-2
3 additions, 2 deletions
ud/udMessages.proto
with
34 additions
and
22 deletions
ud/udMessages.pb.go
+
31
−
20
View file @
0c92ee0f
...
...
@@ -73,7 +73,8 @@ func (m *HashFact) GetType() int32 {
type
Contact
struct
{
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"`
Username
string
`protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
TrigFacts
[]
*
HashFact
`protobuf:"bytes,4,rep,name=trigFacts,proto3" json:"trigFacts,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -118,6 +119,13 @@ func (m *Contact) GetPubKey() []byte {
return
nil
}
func
(
m
*
Contact
)
GetUsername
()
string
{
if
m
!=
nil
{
return
m
.
Username
}
return
""
}
func
(
m
*
Contact
)
GetTrigFacts
()
[]
*
HashFact
{
if
m
!=
nil
{
return
m
.
TrigFacts
...
...
@@ -312,25 +320,28 @@ func init() {
proto
.
RegisterType
((
*
LookupResponse
)(
nil
),
"parse.LookupResponse"
)
}
func
init
()
{
proto
.
RegisterFile
(
"udMessages.proto"
,
fileDescriptor_9e0cfdc16fb09bb6
)
}
func
init
()
{
proto
.
RegisterFile
(
"udMessages.proto"
,
fileDescriptor_9e0cfdc16fb09bb6
)
}
var
fileDescriptor_9e0cfdc16fb09bb6
=
[]
byte
{
// 266 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x74
,
0x91
,
0xc1
,
0x4b
,
0xc3
,
0x30
,
0x14
,
0xc6
,
0xc9
,
0xda
,
0xce
,
0xed
,
0x39
,
0xaa
,
0x04
,
0x91
,
0x1e
,
0x4b
,
0xf4
,
0x50
,
0x04
,
0x0b
,
0xce
,
0xbb
,
0x07
,
0x15
,
0x51
,
0xd4
,
0x4b
,
0x76
,
0xf3
,
0x96
,
0xb5
,
0xcf
,
0x55
,
0x84
,
0x26
,
0xe4
,
0x25
,
0x87
,
0xfd
,
0xf7
,
0xd2
,
0x34
,
0x6e
,
0x08
,
0xf3
,
0x96
,
0xef
,
0xbd
,
0xf7
,
0xe3
,
0xfb
,
0xde
,
0x0b
,
0x9c
,
0xfa
,
0xf6
,
0x1d
,
0x89
,
0xd4
,
0x06
,
0xa9
,
0x36
,
0x56
,
0x3b
,
0xcd
,
0x33
,
0xa3
,
0x2c
,
0xa1
,
0x58
,
0xc2
,
0xec
,
0x59
,
0x51
,
0xf7
,
0xa4
,
0x1a
,
0xc7
,
0x39
,
0xa4
,
0x9d
,
0xa2
,
0xae
,
0x60
,
0x25
,
0xab
,
0x16
,
0x32
,
0xbc
,
0x87
,
0x9a
,
0xdb
,
0x1a
,
0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0x4f
,
0xcc
,
0xa6
,
0x39
,
0x2b
,
0xe6
,
0x72
,
0xd4
,
0xfc
,
0x02
,
0xe6
,
0xce
,
0xbe
,
0x6f
,
0x7a
,
0x2f
,
0x94
,
0x45
,
0xf9
,
0xb4
,
0xf8
,
0xbf
,
0x3c
,
0x28
,
0xbd
,
0xcd
,
0xf2
,
0xc7
,
0xa3
,
0xdc
,
0x4d
,
0x88
,
0x4b
,
0x80
,
0x15
,
0x2a
,
0x5b
,
0x35
,
0x2b
,
0x6c
,
0x6b
,
0x7e
,
0x0a
,
0xd1
,
0x9b
,
0xaa
,
0x5c
,
0xc6
,
0xf6
,
0x73
,
0xbe
,
0x29
,
0x24
,
0xa4
,
0x03
,
0x22
,
0x91
,
0x8c
,
0x6e
,
0x09
,
0xf9
,
0x39
,
0x24
,
0xd5
,
0x70
,
0x0a
,
0x05
,
0x34
,
0x0d
,
0x68
,
0xb8
,
0x50
,
0x8e
,
0x7d
,
0x7e
,
0x04
,
0x31
,
0x5a
,
0xab
,
0x6d
,
0x30
,
0x3e
,
0x08
,
0x71
,
0x06
,
0xf0
,
0xac
,
0xf5
,
0x47
,
0x67
,
0xbc
,
0x8d
,
0x3f
,
0xf2
,
0x10
,
0xd7
,
0x90
,
0x0e
,
0x53
,
0xe3
,
0xe6
,
0x5d
,
0x42
,
0xec
,
0x57
,
0x42
,
0x7b
,
0xb7
,
0xdc
,
0x44
,
0xaf
,
0x93
,
0xae
,
0x5e
,
0xcf
,
0xfc
,
0xdf
,
0x5d
,
0x7d
,
0x07
,
0x00
,
0x00
,
0xff
,
0xff
,
0x1f
,
0xee
,
0x62
,
0x3e
,
0xcf
,
0x01
,
0x00
,
0x00
,
}
This diff is collapsed.
Click to expand it.
ud/udMessages.proto
+
3
−
2
View file @
0c92ee0f
...
...
@@ -23,7 +23,8 @@ message HashFact {
message
Contact
{
bytes
userID
=
1
;
bytes
pubKey
=
2
;
repeated
HashFact
trigFacts
=
3
;
string
username
=
3
;
repeated
HashFact
trigFacts
=
4
;
}
// Message sent to UDB to search for users
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment