From eda980b8eaa08f7557662d3c1f08f882d72f0e4e Mon Sep 17 00:00:00 2001
From: Jono Wenger <jono@elixxir.io>
Date: Wed, 19 Oct 2022 17:50:17 -0700
Subject: [PATCH] Make ConstructIdentity return JSOn of the identity

---
 bindings/channels.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bindings/channels.go b/bindings/channels.go
index 9b727c0db..a70a0bda2 100644
--- a/bindings/channels.go
+++ b/bindings/channels.go
@@ -141,7 +141,7 @@ func ConstructIdentity(pubKey []byte, codesetVersion int) ([]byte, error) {
 	if err != nil {
 		return nil, err
 	}
-	return identity.Marshal(), nil
+	return json.Marshal(identity)
 }
 
 // ImportPrivateIdentity generates a new [channel.PrivateIdentity] from exported
-- 
GitLab