Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
f037b442
Commit
f037b442
authored
2 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Respond to review
parent
ef07715a
No related branches found
No related tags found
2 merge requests
!510
Release
,
!344
Xx 4084/send e2e residue
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bindings/e2eHandler.go
+6
-5
6 additions, 5 deletions
bindings/e2eHandler.go
e2e/sendE2E.go
+11
-0
11 additions, 0 deletions
e2e/sendE2E.go
with
17 additions
and
5 deletions
bindings/e2eHandler.go
+
6
−
5
View file @
f037b442
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
e2e/sendE2E.go
+
11
−
0
View file @
f037b442
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment