From 696caec511eccad2cc12d0c9abf20b540707e978 Mon Sep 17 00:00:00 2001
From: joshemb <josh@elixxir.io>
Date: Wed, 3 Aug 2022 10:47:08 -0700
Subject: [PATCH] Expose registration validation sig

---
 bindings/identity.go | 6 ++++++
 bindings/ud.go       | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/bindings/identity.go b/bindings/identity.go
index bda224053..4af1ee427 100644
--- a/bindings/identity.go
+++ b/bindings/identity.go
@@ -89,6 +89,12 @@ func (c *Cmix) MakeLegacyReceptionIdentity() ([]byte, error) {
 	return ident.Marshal()
 }
 
+// GetReceptionRegistrationValidationSignature returns the signature provided by
+// the xx network.
+func (c *Cmix) GetReceptionRegistrationValidationSignature() []byte {
+	return c.api.GetStorage().GetReceptionRegistrationValidationSignature()
+}
+
 ////////////////////////////////////////////////////////////////////////////////
 // Contact Functions                                                          //
 ////////////////////////////////////////////////////////////////////////////////
diff --git a/bindings/ud.go b/bindings/ud.go
index 611d94f49..413aabf6d 100644
--- a/bindings/ud.go
+++ b/bindings/ud.go
@@ -110,6 +110,10 @@ type UdNetworkStatus interface {
 // Parameters:
 //  - e2eID - e2e object ID in the tracker
 //  - 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,
 	username string, registrationValidationSignature []byte) (
 	*UserDiscovery, error) {
-- 
GitLab