Versions in this module Expand all Collapse all v0 v0.0.2 May 13, 2020 v0.0.1 May 13, 2020 Changes in this version + type Certifier interface + Certify func(check Commit) error + ChainID func() string + type Commit types.SignedHeader + func (c Commit) Height() int64 + func (c Commit) ValidateBasic(chainID string) error + func (c Commit) ValidatorsHash() []byte + type DynamicCertifier struct + func NewDynamicCertifier(chainID string, vals *types.ValidatorSet, height int64) *DynamicCertifier + func (dc *DynamicCertifier) Certify(check Commit) error + func (dc *DynamicCertifier) ChainID() string + func (dc *DynamicCertifier) Hash() []byte + func (dc *DynamicCertifier) LastHeight() int64 + func (dc *DynamicCertifier) Update(fc FullCommit) error + func (dc *DynamicCertifier) Validators() *types.ValidatorSet + type FullCommit struct + Validators *types.ValidatorSet + func NewFullCommit(commit Commit, vals *types.ValidatorSet) FullCommit + type InquiringCertifier struct + Source Provider + func NewInquiringCertifier(chainID string, fc FullCommit, trusted Provider, source Provider) (*InquiringCertifier, error) + func (ic *InquiringCertifier) Certify(commit Commit) error + func (ic *InquiringCertifier) ChainID() string + func (ic *InquiringCertifier) LastHeight() int64 + func (ic *InquiringCertifier) Update(fc FullCommit) error + func (ic *InquiringCertifier) Validators() *types.ValidatorSet + type Provider interface + GetByHash func(hash []byte) (FullCommit, error) + GetByHeight func(h int64) (FullCommit, error) + LatestCommit func() (FullCommit, error) + StoreCommit func(fc FullCommit) error + func NewCacheProvider(providers ...Provider) Provider + func NewMemStoreProvider() Provider + type StaticCertifier struct + func NewStaticCertifier(chainID string, vals *types.ValidatorSet) *StaticCertifier + func (sc *StaticCertifier) Certify(commit Commit) error + func (sc *StaticCertifier) ChainID() string + func (sc *StaticCertifier) Hash() []byte + func (sc *StaticCertifier) 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 int64, txs types.Txs, vals *types.ValidatorSet, ...) Commit + func (v ValKeys) GenFullCommit(chainID string, height int64, txs types.Txs, vals *types.ValidatorSet, ...) FullCommit + func (v ValKeys) ToValidators(init, inc int64) *types.ValidatorSet