Versions in this module Expand all Collapse all v0 v0.12.1 Nov 28, 2017 v0.12.0 Oct 28, 2017 Changes in this version + type Certifier interface + Certify func(check Commit) error + ChainID func() string + type Commit types.SignedHeader + func (c Commit) Height() int + func (c Commit) ValidateBasic(chainID string) error + func (c Commit) ValidatorsHash() []byte + type Dynamic struct + func NewDynamic(chainID string, vals *types.ValidatorSet, height int) *Dynamic + func (c *Dynamic) Certify(check Commit) error + func (c *Dynamic) ChainID() string + func (c *Dynamic) Hash() []byte + func (c *Dynamic) LastHeight() int + func (c *Dynamic) Update(fc FullCommit) error + func (c *Dynamic) Validators() *types.ValidatorSet + type FullCommit struct + Validators *types.ValidatorSet + func NewFullCommit(commit Commit, vals *types.ValidatorSet) FullCommit + type Inquiring struct + Source Provider + func NewInquiring(chainID string, fc FullCommit, trusted Provider, source Provider) *Inquiring + func (c *Inquiring) Certify(commit Commit) error + func (c *Inquiring) ChainID() string + func (c *Inquiring) LastHeight() int + func (c *Inquiring) Update(fc FullCommit) error + func (c *Inquiring) Validators() *types.ValidatorSet + type Provider interface + GetByHash func(hash []byte) (FullCommit, error) + GetByHeight func(h int) (FullCommit, error) + LatestCommit func() (FullCommit, error) + StoreCommit func(fc FullCommit) error + func NewCacheProvider(providers ...Provider) Provider + func NewMemStoreProvider() Provider + func NewMissingProvider() Provider + type Static struct + func NewStatic(chainID string, vals *types.ValidatorSet) *Static + func (c *Static) Certify(commit Commit) error + func (c *Static) ChainID() string + func (c *Static) Hash() []byte + func (c *Static) Validators() *types.ValidatorSet + type ValKeys []crypto.PrivKey + func GenSecpValKeys(n int) ValKeys + func GenValKeys(n int) ValKeys + func (v ValKeys) Change(i int) ValKeys + func (v ValKeys) Extend(n int) ValKeys + func (v ValKeys) ExtendSecp(n int) ValKeys + func (v ValKeys) GenCommit(chainID string, height int, txs types.Txs, vals *types.ValidatorSet, ...) Commit + func (v ValKeys) GenFullCommit(chainID string, height int, txs types.Txs, vals *types.ValidatorSet, ...) FullCommit + func (v ValKeys) ToValidators(init, inc int64) *types.ValidatorSet