From f037b44262a1b564bcc066100b85b7f34dceff0c Mon Sep 17 00:00:00 2001
From: joshemb <josh@elixxir.io>
Date: Fri, 26 Aug 2022 09:54:54 -0700
Subject: [PATCH] WIP: Respond to review

---
 bindings/e2eHandler.go | 11 ++++++-----
 e2e/sendE2E.go         | 11 +++++++++++
 2 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/bindings/e2eHandler.go b/bindings/e2eHandler.go
index 27e7c3ed7..89a2127e8 100644
--- a/bindings/e2eHandler.go
+++ b/bindings/e2eHandler.go
@@ -24,11 +24,12 @@ import (
 // SendE2E.
 //
 // Example E2ESendReport:
-//  {
-//   "Rounds":[1,5,9],
-//   "MessageID":"51Yy47uZbP0o2Y9B/kkreDLTB6opUol3M3mYiY2dcdQ=",
-//   "Timestamp":1653582683183384000
-//  }
+//{
+//"Rounds": [ 1, 4, 9],
+//"MessageID": "iM34yCIr4Je8ZIzL9iAAG1UWAeDiHybxMTioMAaezvs=",
+//"Timestamp": 1661532254302612000,
+//"KeyResidue": "9q2/A69EAuFM1hFAT7Bzy5uGOQ4T6bPFF72h5PlgCWE="
+//}
 type E2ESendReport struct {
 	RoundsList
 	MessageID  []byte
diff --git a/e2e/sendE2E.go b/e2e/sendE2E.go
index 890337e4f..9d72b3aa2 100644
--- a/e2e/sendE2E.go
+++ b/e2e/sendE2E.go
@@ -19,6 +19,17 @@ import (
 	"gitlab.com/xx_network/primitives/netTime"
 )
 
+type SendReport struct {
+	// RoundList is the list of rounds which the message payload
+	// is sent.
+	RoundList []id.Round
+	MessageId e2e.MessageID
+
+	// SentTime is the time in which the message was sent.
+	// More specifically it is when SendE2e is called.
+	SentTime time.Time
+}
+
 func (m *manager) SendE2E(mt catalog.MessageType, recipient *id.ID,
 	payload []byte, params Params) ([]id.Round, e2e.MessageID, time.Time, e2e.KeyResidue, error) {
 
-- 
GitLab