Versions in this module Expand all Collapse all v0 v0.32.0 Sep 13, 2023 Changes in this version + type BaseVerifier struct + func NewBaseVerifier(chainID string, height int64, valset *types.ValidatorSet) *BaseVerifier + func (bv *BaseVerifier) ChainID() string + func (bv *BaseVerifier) Verify(signedHeader types.SignedHeader) error + type DBProvider struct + func NewDBProvider(label string, db dbm.DB) *DBProvider + func (dbp *DBProvider) LatestFullCommit(chainID string, minHeight, maxHeight int64) (FullCommit, error) + func (dbp *DBProvider) SaveFullCommit(fc FullCommit) error + func (dbp *DBProvider) SetLimit(limit int) *DBProvider + func (dbp *DBProvider) SetLogger(logger log.Logger) + func (dbp *DBProvider) ValidatorSet(chainID string, height int64) (valset *types.ValidatorSet, err error) + type DynamicVerifier struct + func NewDynamicVerifier(chainID string, trusted PersistentProvider, source Provider) *DynamicVerifier + func (dv *DynamicVerifier) ChainID() string + func (dv *DynamicVerifier) LastTrustedHeight() int64 + func (dv *DynamicVerifier) SetLogger(logger log.Logger) + func (dv *DynamicVerifier) Verify(shdr types.SignedHeader) error + type FullCommit struct + NextValidators *types.ValidatorSet + SignedHeader types.SignedHeader + Validators *types.ValidatorSet + func NewFullCommit(signedHeader types.SignedHeader, valset, nextValset *types.ValidatorSet) FullCommit + func (fc FullCommit) ChainID() string + func (fc FullCommit) Height() int64 + func (fc FullCommit) ValidateFull(chainID string) error + type PersistentProvider interface + SaveFullCommit func(fc FullCommit) error + func NewMultiProvider(providers ...PersistentProvider) PersistentProvider + type Provider interface + LatestFullCommit func(chainID string, minHeight, maxHeight int64) (FullCommit, error) + SetLogger func(logger log.Logger) + ValidatorSet func(chainID string, height int64) (*types.ValidatorSet, error) + type Verifier interface + ChainID func() string + Verify func(sheader types.SignedHeader) error