Documentation ¶
Index ¶
Constants ¶
View Source
const ( DKGCommits OperationType = "dkg_commits" SignatureReconstructed fsm.Event = "signature_reconstructed" SignatureReconstructionFailed fsm.Event = "signature_reconstruction_failed" ReinitDKG fsm.State = "reinit_dkg" // OperationProcessed common event type for successfully processed operations but with an empty result OperationProcessed fsm.Event = "operation_processed_successfully" )
Variables ¶
This section is empty.
Functions ¶
func FSMRequestFromMessage ¶
FSMRequestFromMessage converts a message data to a necessary FSM struct
Types ¶
type Operation ¶
type Operation struct { ID string // UUID4 Type OperationType Payload []byte ResultMsgs []storage.Message CreatedAt time.Time DKGIdentifier string To string Event fsm.Event // field for some additional helping data ExtraData []byte }
Operation is the type for any Operation that might be required for both DKG and signing process (e.g.,
func NewOperation ¶
func (*Operation) IsSigningState ¶
type OperationType ¶
type OperationType string
type Participant ¶
type ReDKG ¶
type ReDKG struct { DKGID string `json:"dkg_id"` Threshold int `json:"threshold"` Participants []Participant `json:"participants"` Messages []storage.Message `json:"messages"` }
func GenerateReDKGMessage ¶
func GenerateReDKGMessage(messages []storage.Message, newCommPubKeys map[string][]byte) (*ReDKG, error)
GenerateReDKGMessage returns a ReDKG message based on an append log dump. newCommPubKeys will be used add new public communication keys to each participant; this value can be nil.
Click to show internal directories.
Click to hide internal directories.