Versions in this module Expand all Collapse all v1 v1.2.2 Apr 7, 2024 Changes in this version + type Chain struct + HeaderStore IHeaderStore + Validate IValidate + func (c *Chain) GetCurrentNumberAndHash(db types.StateDB) (uint64, common.Hash, error) + func (c *Chain) GetHashByNumber(db types.StateDB, number uint64) (common.Hash, error) + func (c *Chain) InsertHeaders(db types.StateDB, headers []byte) ([]*params.NumberHash, error) + func (c *Chain) ResetHeaderStore(db types.StateDB, header []byte, td *big.Int) error + func (c *Chain) ValidateHeaderChain(db types.StateDB, headers []byte, chainType chains.ChainType) (int, error) + type IChain interface + func ChainFactory(group chains.ChainGroup) (IChain, error) + type IHeaderStore interface + GetCurrentNumberAndHash func(db types.StateDB) (uint64, common.Hash, error) + GetHashByNumber func(db types.StateDB, number uint64) (common.Hash, error) + InsertHeaders func(db types.StateDB, headers []byte) ([]*params.NumberHash, error) + ResetHeaderStore func(db types.StateDB, header []byte, td *big.Int) error + func HeaderStoreFactory(group chains.ChainGroup) (IHeaderStore, error) + type IValidate interface + ValidateHeaderChain func(db types.StateDB, headers []byte, chainType chains.ChainType) (int, error) + func ValidateFactory(group chains.ChainGroup) (IValidate, error) + type IVerify interface + Verify func(db types.StateDB, router common.Address, txProveBytes []byte) (logs []byte, err error) + func VerifyFactory(group chains.ChainGroup) (IVerify, error) + type StoreLoad interface + Load func(db types.StateDB) error + Store func(db types.StateDB) error + type Validate interface