evidence

package
v0.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnablePenalization

func EnablePenalization(r action.Router) error

Types

type Allegation

type Allegation struct {
	RequestID        string
	ValidatorAddress keys.Address
	MaliciousAddress keys.Address
	BlockHeight      int64
	ProofMsg         string
}

func (Allegation) Marshal

func (r Allegation) Marshal() ([]byte, error)

func (Allegation) Signers

func (r Allegation) Signers() []action.Address

func (Allegation) Tags

func (r Allegation) Tags() kv.Pairs

func (Allegation) Type

func (r Allegation) Type() action.Type

func (*Allegation) Unmarshal

func (r *Allegation) Unmarshal(data []byte) error

type AllegationVote

type AllegationVote struct {
	RequestID string
	Address   keys.Address
	Choice    int8
}

func (AllegationVote) Marshal

func (av AllegationVote) Marshal() ([]byte, error)

func (AllegationVote) Signers

func (av AllegationVote) Signers() []action.Address

func (AllegationVote) Tags

func (av AllegationVote) Tags() kv.Pairs

func (AllegationVote) Type

func (av AllegationVote) Type() action.Type

func (*AllegationVote) Unmarshal

func (av *AllegationVote) Unmarshal(data []byte) error

type Release

type Release struct {
	ValidatorAddress keys.Address
}

func (Release) Marshal

func (r Release) Marshal() ([]byte, error)

func (Release) Signers

func (r Release) Signers() []action.Address

func (Release) Tags

func (r Release) Tags() kv.Pairs

func (Release) Type

func (r Release) Type() action.Type

func (*Release) Unmarshal

func (r *Release) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL