From 6edbdfd5629c8e83f37208c88fc8db9fcea06450 Mon Sep 17 00:00:00 2001
From: joshemb <josh@elixxir.io>
Date: Tue, 23 Aug 2022 17:19:12 -0700
Subject: [PATCH] Fix bindings

---
 bindings/connect.go    | 2 +-
 bindings/e2eHandler.go | 7 +++----
 go.mod                 | 2 +-
 go.sum                 | 2 ++
 4 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/bindings/connect.go b/bindings/connect.go
index 75e1d7f40..5e9e55f8b 100644
--- a/bindings/connect.go
+++ b/bindings/connect.go
@@ -96,7 +96,7 @@ func (c *Connection) SendE2E(mt int, payload []byte) ([]byte, error) {
 		RoundsList: makeRoundsList(rounds...),
 		MessageID:  mid.Marshal(),
 		Timestamp:  ts.UnixNano(),
-		KeyResidue: keyResidue,
+		KeyResidue: keyResidue.Marshal(),
 	}
 
 	return json.Marshal(&sr)
diff --git a/bindings/e2eHandler.go b/bindings/e2eHandler.go
index a80e23e08..27e7c3ed7 100644
--- a/bindings/e2eHandler.go
+++ b/bindings/e2eHandler.go
@@ -31,9 +31,8 @@ import (
 //  }
 type E2ESendReport struct {
 	RoundsList
-	MessageID []byte
-	Timestamp int64
-	// todo: make marshal function
+	MessageID  []byte
+	Timestamp  int64
 	KeyResidue []byte
 }
 
@@ -145,7 +144,7 @@ func (e *E2e) SendE2E(messageType int, recipientId, payload,
 		RoundsList: makeRoundsList(roundIds...),
 		MessageID:  messageId.Marshal(),
 		Timestamp:  ts.UnixNano(),
-		KeyResidue: keyResidue,
+		KeyResidue: keyResidue.Marshal(),
 	}
 	return json.Marshal(result)
 }
diff --git a/go.mod b/go.mod
index edc4b5549..f8abc624c 100644
--- a/go.mod
+++ b/go.mod
@@ -13,7 +13,7 @@ require (
 	github.com/spf13/viper v1.12.0
 	gitlab.com/elixxir/bloomfilter v0.0.0-20211222005329-7d931ceead6f
 	gitlab.com/elixxir/comms v0.0.4-0.20220603231314-e47e4af13326
-	gitlab.com/elixxir/crypto v0.0.7-0.20220822180822-5e1b688a9500
+	gitlab.com/elixxir/crypto v0.0.7-0.20220823235814-7f7036f95acb
 	gitlab.com/elixxir/ekv v0.1.7
 	gitlab.com/elixxir/primitives v0.0.3-0.20220606195757-40f7a589347f
 	gitlab.com/xx_network/comms v0.0.4-0.20220630163702-f3d372ef6acd
diff --git a/go.sum b/go.sum
index 79f9648c4..9925d78e0 100644
--- a/go.sum
+++ b/go.sum
@@ -444,6 +444,8 @@ gitlab.com/elixxir/crypto v0.0.7-0.20220822180551-92d06134b333 h1:V19ek4Hz3k1JB5
 gitlab.com/elixxir/crypto v0.0.7-0.20220822180551-92d06134b333/go.mod h1:0gH41Kb/a9Akdv+2+vMJVdx+REVwR8CZXTr2+BrgeeA=
 gitlab.com/elixxir/crypto v0.0.7-0.20220822180822-5e1b688a9500 h1:KI+7GoG2/9x/J5qdr9VCd2woGwE8RDaSMrt9STYfBKU=
 gitlab.com/elixxir/crypto v0.0.7-0.20220822180822-5e1b688a9500/go.mod h1:0gH41Kb/a9Akdv+2+vMJVdx+REVwR8CZXTr2+BrgeeA=
+gitlab.com/elixxir/crypto v0.0.7-0.20220823235814-7f7036f95acb h1:J5/yaBi7ZucSLIVHUanxgV6FKT/yDzF5I4TQYZsQqIQ=
+gitlab.com/elixxir/crypto v0.0.7-0.20220823235814-7f7036f95acb/go.mod h1:0gH41Kb/a9Akdv+2+vMJVdx+REVwR8CZXTr2+BrgeeA=
 gitlab.com/elixxir/ekv v0.1.7 h1:OW2z+N4QCqqMFzouAwFTWWMKz0Y/PDhyYReN7gQ5NiQ=
 gitlab.com/elixxir/ekv v0.1.7/go.mod h1:e6WPUt97taFZe5PFLPb1Dupk7tqmDCTQu1kkstqJvw4=
 gitlab.com/elixxir/primitives v0.0.0-20200731184040-494269b53b4d/go.mod h1:OQgUZq7SjnE0b+8+iIAT2eqQF+2IFHn73tOo+aV11mg=
-- 
GitLab