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
696caec5
Commit
696caec5
authored
Aug 3, 2022
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Expose registration validation sig
parent
abb5ec48
No related branches found
No related tags found
2 merge requests
!510
Release
,
!308
Expose registration validation sig
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bindings/identity.go
+6
-0
6 additions, 0 deletions
bindings/identity.go
bindings/ud.go
+4
-0
4 additions, 0 deletions
bindings/ud.go
with
10 additions
and
0 deletions
bindings/identity.go
+
6
−
0
View file @
696caec5
...
@@ -89,6 +89,12 @@ func (c *Cmix) MakeLegacyReceptionIdentity() ([]byte, error) {
...
@@ -89,6 +89,12 @@ func (c *Cmix) MakeLegacyReceptionIdentity() ([]byte, error) {
return
ident
.
Marshal
()
return
ident
.
Marshal
()
}
}
// GetReceptionRegistrationValidationSignature returns the signature provided by
// the xx network.
func
(
c
*
Cmix
)
GetReceptionRegistrationValidationSignature
()
[]
byte
{
return
c
.
api
.
GetStorage
()
.
GetReceptionRegistrationValidationSignature
()
}
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
// Contact Functions //
// Contact Functions //
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
...
...
This diff is collapsed.
Click to expand it.
bindings/ud.go
+
4
−
0
View file @
696caec5
...
@@ -110,6 +110,10 @@ type UdNetworkStatus interface {
...
@@ -110,6 +110,10 @@ type UdNetworkStatus interface {
// Parameters:
// Parameters:
// - e2eID - e2e object ID in the tracker
// - e2eID - e2e object ID in the tracker
// - follower - network follower func wrapped in UdNetworkStatus
// - follower - network follower func wrapped in UdNetworkStatus
// - username - the username the user wants to register with UD.
// If the user is already registered, this field may be blank
// - registrationValidationSignature - the signature provided by the xx network.
// This signature is optional for other consumers who deploy their own UD.
func
LoadOrNewUserDiscovery
(
e2eID
int
,
follower
UdNetworkStatus
,
func
LoadOrNewUserDiscovery
(
e2eID
int
,
follower
UdNetworkStatus
,
username
string
,
registrationValidationSignature
[]
byte
)
(
username
string
,
registrationValidationSignature
[]
byte
)
(
*
UserDiscovery
,
error
)
{
*
UserDiscovery
,
error
)
{
...
...
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