communication

package
v0.0.0-...-8ef2c5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadcastChannel

type BroadcastChannel interface {
	Send(msg []byte)
	ReceiveRound() (int, []BroadcastMessage)
}

BroadcastChannel is a channel used by a party to perform send and receive operations in the execution of a protocol

type BroadcastMessage

type BroadcastMessage struct {
	Payload  []byte `codec:"payload"`
	SenderID int    `codec:"snd_id"`
	// contains filtered or unexported fields
}

BroadcastMessage is a wrapper for a message broadcasted by a party in the protocol

type RoundMessages

type RoundMessages struct {
	Messages []BroadcastMessage `codec:"msgs"`
	Round    int                `codec:"rnd"`
	// contains filtered or unexported fields
}

RoundMessages is a wrapper for all the messages send in a round

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL