Documentation ¶
Index ¶
- type Authority
- func (a *Authority) Add(nodeMaster thor.Address, endorsor thor.Address, identity thor.Bytes32) (bool, error)
- func (a *Authority) AllCandidates() ([]*Candidate, error)
- func (a *Authority) Candidates(endorsement *big.Int, limit uint64) ([]*Candidate, error)
- func (a *Authority) First() (*thor.Address, error)
- func (a *Authority) Get(nodeMaster thor.Address) (listed bool, endorsor thor.Address, identity thor.Bytes32, active bool, ...)
- func (a *Authority) Next(nodeMaster thor.Address) (*thor.Address, error)
- func (a *Authority) Revoke(nodeMaster thor.Address) (bool, error)
- func (a *Authority) Update(nodeMaster thor.Address, active bool) (bool, error)
- 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 thor.Address, endorsor thor.Address, identity thor.Bytes32) (bool, error)
Add add a new candidate.
func (*Authority) AllCandidates ¶ added in v1.1.5
AllCandidates lists all registered candidates.
func (*Authority) Candidates ¶
Candidates picks a batch of candidates up to limit, that satisfy given endorsement.
func (*Authority) Get ¶
func (a *Authority) Get(nodeMaster thor.Address) (listed bool, endorsor thor.Address, identity thor.Bytes32, active bool, err error)
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.