Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstanceUID ¶
type InstanceUID []byte
InstanceUID is used to uniquely identify an instance of multisig collector. It is used to prevent cross-instance signature replay attack and should be unique across all executions.
func (InstanceUID) Bytes ¶
func (uid InstanceUID) Bytes() []byte
Bytes returns the binary representation of the InstanceUID.
type ModuleConfig ¶
type ModuleConfig struct { Self t.ModuleID // id of this module Mempool t.ModuleID BatchDB t.ModuleID Net t.ModuleID Crypto t.ModuleID }
ModuleConfig sets the module ids. All replicas are expected to use identical module configurations.
type ModuleParams ¶
type ModuleParams struct { InstanceUID []byte // unique identifier for this instance of BCB, used to prevent cross-instance replay attacks AllNodes []t.NodeID // the list of participating nodes F int // the maximum number of failures tolerated. Must be less than (len(AllNodes)-1) / 2 }
ModuleParams sets the values for the parameters of an instance of the protocol. All replicas are expected to use identical module parameters.
Click to show internal directories.
Click to hide internal directories.