Documentation ¶
Index ¶
- type Authority
- func (a *Authority) Add(nodeMaster powerplay.Address, endorsor powerplay.Address, ...) bool
- func (a *Authority) Candidates(endorsement *big.Int, limit uint64) []*Candidate
- func (a *Authority) First() *powerplay.Address
- func (a *Authority) Get(nodeMaster powerplay.Address) (listed bool, endorsor powerplay.Address, identity powerplay.Bytes32, ...)
- func (a *Authority) Next(nodeMaster powerplay.Address) *powerplay.Address
- func (a *Authority) Revoke(nodeMaster powerplay.Address) bool
- func (a *Authority) Update(nodeMaster powerplay.Address, active bool) bool
- type Candidate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authority ¶
type Authority struct {
// contains filtered or unexported fields
}
Authority implements native methods of `Authority` contract.
func (*Authority) Add ¶
func (a *Authority) Add(nodeMaster powerplay.Address, endorsor powerplay.Address, identity powerplay.Bytes32) bool
Add add a new candidate.
func (*Authority) Candidates ¶
Candidates picks a batch of candidates up to limit, that satisfy given endorsement.
func (*Authority) Get ¶
func (a *Authority) Get(nodeMaster powerplay.Address) (listed bool, endorsor powerplay.Address, identity powerplay.Bytes32, active bool)
Get get candidate by node master address.
func (*Authority) Next ¶
Next returns address of next node master address after given node master address.
Click to show internal directories.
Click to hide internal directories.