From 9b9e521e65356d2636a8e0841c5af04772338a1d Mon Sep 17 00:00:00 2001
From: joshemb <josh@elixxir.io>
Date: Thu, 18 Aug 2022 10:08:46 -0700
Subject: [PATCH] Add dubug statement in
 bindings.GetReceptionRegistrationValidationSignature

---
 bindings/identity.go | 7 ++++++-
 bindings/ud.go       | 4 ++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/bindings/identity.go b/bindings/identity.go
index 5f9428353..1385e5848 100644
--- a/bindings/identity.go
+++ b/bindings/identity.go
@@ -8,7 +8,9 @@
 package bindings
 
 import (
+	"encoding/base64"
 	"encoding/json"
+	jww "github.com/spf13/jwalterweatherman"
 	"gitlab.com/elixxir/client/xxdk"
 	"gitlab.com/elixxir/crypto/contact"
 	"gitlab.com/elixxir/primitives/fact"
@@ -92,7 +94,10 @@ func (c *Cmix) MakeLegacyReceptionIdentity() ([]byte, error) {
 // GetReceptionRegistrationValidationSignature returns the signature provided by
 // the xx network.
 func (c *Cmix) GetReceptionRegistrationValidationSignature() []byte {
-	return c.api.GetStorage().GetReceptionRegistrationValidationSignature()
+	regSig := c.api.GetStorage().GetReceptionRegistrationValidationSignature()
+	jww.WARN.Printf("UD DEBUG: Reception reg valid sig: %v",
+		base64.StdEncoding.EncodeToString(regSig))
+	return regSig
 }
 
 ////////////////////////////////////////////////////////////////////////////////
diff --git a/bindings/ud.go b/bindings/ud.go
index 8170f87bf..0f8d8612d 100644
--- a/bindings/ud.go
+++ b/bindings/ud.go
@@ -140,8 +140,8 @@ func IsRegisteredWithUD(e2eId int) (bool, error) {
 //
 // Certain parameters are required every call to this function. These parameters are listed below
 // as "REQUIRED". For example, parameters need be provided to specify how to connect to the
-// User Discovery service. These parameters may be used to contact either the UD server hosted
-// by the xx network team or a custom third-party operated server. For the former,
+// User Discovery service. These parameters specifically may be used to contact either the UD
+// server hosted by the xx network team or a custom third-party operated server. For the former,
 // all the information may be fetched from the NDF using the bindings. These fetch
 // methods are detailed in the parameters section.
 //
-- 
GitLab