Documentation ¶
Index ¶
- Variables
- func GetConsensusPeerKey(chainId uint64) []byte
- func GetKeyHeaderHashKey(chainId uint64) []byte
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (keeper Keeper) GetConsensusPeers(ctx sdk.Context, chainId uint64) (*types.ConsensusPeers, error)
- func (keeper Keeper) GetKeyHeaderHash(ctx sdk.Context, chainId uint64) (*polycommon.Uint256, error)
- func (keeper Keeper) ProcessHeader(ctx sdk.Context, header *polytype.Header, headerProof []byte, ...) error
- func (keeper Keeper) SetConsensusPeers(ctx sdk.Context, consensusPeers types.ConsensusPeers) error
- func (keeper Keeper) SetKeyHeaderHash(ctx sdk.Context, chainId uint64, keyHeaderHash polycommon.Uint256) error
- func (keeper Keeper) SyncBlockHeaders(ctx sdk.Context, headerStrs []string) error
- func (keeper Keeper) SyncGenesisHeader(ctx sdk.Context, genesisHeaderStr string) error
- func (keeper Keeper) UpdateConsensusPeer(ctx sdk.Context, header *polytype.Header) error
- func (keeper Keeper) VerifyHeaderByKeyHeaderHash(ctx sdk.Context, header *polytype.Header) error
- func (keeper Keeper) VerifyHeaderSig(ctx sdk.Context, header *polytype.Header) error
- func (keeper Keeper) VerifyHistoricalHeader(ctx sdk.Context, header *polytype.Header, headerProof []byte, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConsensusPeerPrefix = []byte{0x01} // To help store the header hash at height where the poly chain switch epoch consensus public keys KeyHeaderHashPrefix = []byte{0x02} )
Functions ¶
func GetConsensusPeerKey ¶
func GetKeyHeaderHashKey ¶
func NewQuerier ¶
NewQuerier returns a minting Querier handler.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the mint store
func (Keeper) GetConsensusPeers ¶
func (Keeper) GetKeyHeaderHash ¶
func (Keeper) ProcessHeader ¶
func (Keeper) SetConsensusPeers ¶
func (Keeper) SetKeyHeaderHash ¶
func (Keeper) SyncBlockHeaders ¶
func (Keeper) SyncGenesisHeader ¶
func (Keeper) UpdateConsensusPeer ¶
func (Keeper) VerifyHeaderByKeyHeaderHash ¶
func (Keeper) VerifyHeaderSig ¶
Click to show internal directories.
Click to hide internal directories.