Documentation ¶
Index ¶
- func DefaultAuthenticationContract() (*contract.Contract, error)
- func DefaultCommitteeContract() (*contract.Contract, error)
- func Init(u *Usechain) error
- func ReadManagerContractConfig() (*contractConfig, error)
- func UpdateManagerContractConfig(ctr *contractConfig) error
- func UpdateProfile(profile *CommittteeProfile) error
- func UpdateUsedConfig(used *UsedConfig) error
- func UpdateWhisperNode(ws *NodeConfig) error
- type CommittteeProfile
- type NodeConfig
- type State
- type Usechain
- type UsedConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadManagerContractConfig ¶
func ReadManagerContractConfig() (*contractConfig, error)
func UpdateManagerContractConfig ¶
func UpdateManagerContractConfig(ctr *contractConfig) error
func UpdateProfile ¶
func UpdateProfile(profile *CommittteeProfile) error
func UpdateUsedConfig ¶
func UpdateUsedConfig(used *UsedConfig) error
func UpdateWhisperNode ¶
func UpdateWhisperNode(ws *NodeConfig) error
Types ¶
type CommittteeProfile ¶
Structure of a committee info
func ReadProfile ¶
func ReadProfile() (*CommittteeProfile, error)
type NodeConfig ¶
Structure of a whisper node
func ReadWhisperNode ¶
func ReadWhisperNode() (*NodeConfig, error)
type State ¶
type State int
The state of the Usechain committee
const ( Voting State = iota //value --> 0 in voting Selected //value --> 1 selected, but not confirmed WaittingOther //value --> 2 self confirmed, wait for all confirmed KeyGenerating //value --> 3 in generating committee key Verifying //value --> 4 in verification NotCommittee //value --> 5 not a committee Other //value --> 6 )
Enum of the State
type Usechain ¶
type Usechain struct { UserProfile *CommittteeProfile ManagerContract *contract.Contract IdentityContract *contract.Contract NodeRPC *usedrpc.UseRPC WisperInfo *NodeConfig UsedClient *UsedConfig Kstore *keystore.KeyStore Workstat State }
Usechain implements the Usechain Committee full node service.
Click to show internal directories.
Click to hide internal directories.