Skip to content
Snippets Groups Projects
Commit f037b442 authored by Josh Brooks's avatar Josh Brooks
Browse files

WIP: Respond to review

parent ef07715a
No related branches found
No related tags found
2 merge requests!510Release,!344Xx 4084/send e2e residue
...@@ -24,11 +24,12 @@ import ( ...@@ -24,11 +24,12 @@ import (
// SendE2E. // SendE2E.
// //
// Example E2ESendReport: // Example E2ESendReport:
// { //{
// "Rounds":[1,5,9], //"Rounds": [ 1, 4, 9],
// "MessageID":"51Yy47uZbP0o2Y9B/kkreDLTB6opUol3M3mYiY2dcdQ=", //"MessageID": "iM34yCIr4Je8ZIzL9iAAG1UWAeDiHybxMTioMAaezvs=",
// "Timestamp":1653582683183384000 //"Timestamp": 1661532254302612000,
// } //"KeyResidue": "9q2/A69EAuFM1hFAT7Bzy5uGOQ4T6bPFF72h5PlgCWE="
//}
type E2ESendReport struct { type E2ESendReport struct {
RoundsList RoundsList
MessageID []byte MessageID []byte
......
...@@ -19,6 +19,17 @@ import ( ...@@ -19,6 +19,17 @@ import (
"gitlab.com/xx_network/primitives/netTime" "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, func (m *manager) SendE2E(mt catalog.MessageType, recipient *id.ID,
payload []byte, params Params) ([]id.Round, e2e.MessageID, time.Time, e2e.KeyResidue, error) { payload []byte, params Params) ([]id.Round, e2e.MessageID, time.Time, e2e.KeyResidue, error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment