Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrStopped = errors.New("process stopped") ErrInvalidSender = errors.New("invalid sender") ErrDataLength = errors.New("data too long") )
View Source
var ErrInvalidType = errors.New("invalid message type")
Functions ¶
func ValidMessageType ¶
Types ¶
type ACSS ¶
func (*ACSS) Input ¶
func (a *ACSS) Input(secret kyber.Scalar)
Input is called by the dealer to start the sharing of the given secret.
func (*ACSS) Messages ¶
func (a *ACSS) Messages() <-chan *OutMessage
Messages receives the messages to be sent to other peers.
type Message ¶
type Message struct { Type MessageType Data []byte }
func (*Message) MarshalBinary ¶
func (*Message) UnmarshalBinary ¶
type MessageError ¶
type MessageError struct { SenderID string Type MessageType Str string }
func (*MessageError) Error ¶
func (e *MessageError) Error() string
type MessageType ¶
type MessageType byte
const ( RBC MessageType = iota OK Ready Implicate Reveal )
func (MessageType) String ¶
func (t MessageType) String() string
type OutMessage ¶
Click to show internal directories.
Click to hide internal directories.