Documentation ¶
Index ¶
- Variables
- type Output
- type Round0
- func (round *Round0) AcceptedMessageTypes() []messages.MessageType
- func (round *Round0) GenerateMessages() ([]*messages.Message, *state.Error)
- func (round *Round0) GetOutput() interface{}
- func (round *Round0) MarshalJSON() ([]byte, error)
- func (round *Round0) MarshalRound() ([]byte, error)
- func (round *Round0) NextRound() state.Round
- func (round *Round0) ProcessMessage(*messages.Message) *state.Error
- func (round *Round0) Reset()
- func (round *Round0) UnmarshalJSON(data []byte) error
- func (round *Round0) UnmarshalRound(data []byte) (state.Round, error)
- type Round0JSON
- type Round1
- func (round *Round1) GenerateMessages() ([]*messages.Message, *state.Error)
- func (round *Round1) GetOutput() interface{}
- func (round *Round1) MarshalJSON() ([]byte, error)
- func (round *Round1) NextRound() state.Round
- func (round *Round1) ProcessMessage(msg *messages.Message) *state.Error
- func (round *Round1) UnmarshalJSON(data []byte) error
- type Round2
- func (round *Round2) GenerateMessages() ([]*messages.Message, *state.Error)
- func (round *Round2) GetOutput() interface{}
- func (round *Round2) MarshalJSON() ([]byte, error)
- func (round *Round2) NextRound() state.Round
- func (round *Round2) ProcessMessage(msg *messages.Message) *state.Error
- func (round *Round2) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrValidateSignature = errors.New("full signature is invalid") )
Functions ¶
This section is empty.
Types ¶
type Round0 ¶
type Round0 struct { *state.BaseRound // Message is the message to be signed Message []byte // Parties maps IDs to a struct containing all intermediary data for each signer. Parties map[party.ID]*signer // GroupKey is the GroupKey, i.e. the public key associated to the group of signers. GroupKey eddsa.PublicKey // C = H(R, GroupKey, Message) C ristretto.Scalar // R = ∑ Ri R ristretto.Element Output *Output // contains filtered or unexported fields }
func (*Round0) AcceptedMessageTypes ¶
func (round *Round0) AcceptedMessageTypes() []messages.MessageType
func (*Round0) GenerateMessages ¶
func (*Round0) MarshalJSON ¶
func (*Round0) MarshalRound ¶
func (*Round0) UnmarshalJSON ¶
type Round0JSON ¶
type Round0JSON struct { Base []byte `json:"base,omitempty"` Messages []byte `json:"messages,omitempty"` Parties map[party.ID]*signer `json:"parties,omitempty"` GroupKey []byte `json:"group_key,omitempty"` E []byte `json:"e_scalar,omitempty"` D []byte `json:"d_scalar,omitempty"` C []byte `json:"c_scalar,omitempty"` R []byte `json:"r_scalar,omitempty"` Output []byte `json:"output,omitempty"` }
type Round1 ¶
type Round1 struct {
*Round0
}
func (*Round1) GenerateMessages ¶
func (*Round1) MarshalJSON ¶
func (*Round1) ProcessMessage ¶
func (*Round1) UnmarshalJSON ¶
type Round2 ¶
type Round2 struct {
*Round1
}
func (*Round2) GenerateMessages ¶
func (*Round2) MarshalJSON ¶
func (*Round2) ProcessMessage ¶
func (*Round2) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.