Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Round1 ¶
Round1 can embed round.Helper which provides useful methods handling messages.
func (Round1) MessageContent ¶
MessageContent returns an empty message.First as a placeholder indicating that no message is expected.
func (*Round1) StoreMessage ¶
StoreMessage in the first round does nothing since no messages are expected.
type Round2 ¶
type Round2 struct { *Round1 // contains filtered or unexported fields }
Round2 embeds Round1 so that it has access to previous information.
func (*Round2) Finalize ¶
Finalize does not send any messages, but computes the output resulting from the received messages.
func (Round2) MessageContent ¶
MessageContent implements round.Round.
func (*Round2) StoreMessage ¶
StoreMessage saves any relevant data from the content, in this case the sender's xor value.
type Round2Message ¶
Round2Message is the message sent in Round1 and received in Round2.
func (Round2Message) RoundNumber ¶
func (Round2Message) RoundNumber() round.Number
RoundNumber should return the same things as Round.Number.