diff --git a/bindings/e2eHandler.go b/bindings/e2eHandler.go index 27e7c3ed74354456aeb5dfbd390457339c244dd6..89a2127e8e253508bef6ddc319d10e4cd4e4dfe4 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 890337e4f2b56402edadcfcc0ec4e1c1869bb30b..9d72b3aa2f7a85027efd68faa15aaef9123c4ca6 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) {