Skip to content
Snippets Groups Projects
Commit 696caec5 authored by Josh Brooks's avatar Josh Brooks
Browse files

Expose registration validation sig

parent abb5ec48
No related branches found
No related tags found
2 merge requests!510Release,!308Expose registration validation sig
...@@ -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 //
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
......
...@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment