Versions in this module Expand all Collapse all v8 v8.8.8 Jul 11, 2024 Changes in this version + const ModuleName + const SentinelHeaderPath + var ErrIntOverflowSolomachine = fmt.Errorf("proto: integer overflow") + var ErrInvalidHeader = errorsmod.Register(ModuleName, 2, "invalid header") + var ErrInvalidLengthSolomachine = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidProof = errorsmod.Register(ModuleName, 6, "invalid solo machine proof") + var ErrInvalidSequence = errorsmod.Register(ModuleName, 3, "invalid sequence") + var ErrInvalidSignatureAndData = errorsmod.Register(ModuleName, 4, "invalid signature and data") + var ErrSignatureVerificationFailed = errorsmod.Register(ModuleName, 5, "signature verification failed") + var ErrUnexpectedEndOfGroupSolomachine = fmt.Errorf("proto: unexpected end of group") + func RegisterInterfaces(registry codectypes.InterfaceRegistry) + func UnmarshalSignatureData(cdc codec.BinaryCodec, data []byte) (signing.SignatureData, error) + func VerifySignature(pubKey cryptotypes.PubKey, signBytes []byte, sigData signing.SignatureData) error + type AppModule struct + func NewAppModule(lightClientModule LightClientModule) AppModule + func (AppModule) IsAppModule() + func (AppModule) IsOnePerModuleType() + type AppModuleBasic struct + func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage + func (AppModuleBasic) GetQueryCmd() *cobra.Command + func (AppModuleBasic) GetTxCmd() *cobra.Command + func (AppModuleBasic) IsAppModule() + func (AppModuleBasic) IsOnePerModuleType() + func (AppModuleBasic) Name() string + func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) + func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) + func (AppModuleBasic) RegisterLegacyAminoCodec(*codec.LegacyAmino) + func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error + type ClientState struct + ConsensusState *ConsensusState + IsFrozen bool + Sequence uint64 + func NewClientState(latestSequence uint64, consensusState *ConsensusState) *ClientState + func (*ClientState) Descriptor() ([]byte, []int) + func (*ClientState) ProtoMessage() + func (ClientState) CheckForMisbehaviour(_ sdk.Context, _ codec.BinaryCodec, _ storetypes.KVStore, ...) bool + func (ClientState) ClientType() string + func (cs *ClientState) VerifyMembership(ctx sdk.Context, clientStore storetypes.KVStore, cdc codec.BinaryCodec, ...) error + func (cs *ClientState) VerifyNonMembership(ctx sdk.Context, clientStore storetypes.KVStore, cdc codec.BinaryCodec, ...) error + func (cs ClientState) CheckSubstituteAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, ...) error + func (cs ClientState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error + func (cs ClientState) UpdateState(ctx sdk.Context, cdc codec.BinaryCodec, clientStore storetypes.KVStore, ...) []exported.Height + func (cs ClientState) Validate() error + func (cs ClientState) VerifyClientMessage(ctx sdk.Context, cdc codec.BinaryCodec, clientStore storetypes.KVStore, ...) error + func (m *ClientState) Marshal() (dAtA []byte, err error) + func (m *ClientState) MarshalTo(dAtA []byte) (int, error) + func (m *ClientState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ClientState) Reset() + func (m *ClientState) Size() (n int) + func (m *ClientState) String() string + func (m *ClientState) Unmarshal(dAtA []byte) error + func (m *ClientState) XXX_DiscardUnknown() + func (m *ClientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ClientState) XXX_Merge(src proto.Message) + func (m *ClientState) XXX_Size() int + func (m *ClientState) XXX_Unmarshal(b []byte) error + type ConsensusState struct + Diversifier string + PublicKey *types.Any + Timestamp uint64 + func (*ConsensusState) Descriptor() ([]byte, []int) + func (*ConsensusState) ProtoMessage() + func (ConsensusState) ClientType() string + func (cs ConsensusState) GetPubKey() (cryptotypes.PubKey, error) + func (cs ConsensusState) GetTimestamp() uint64 + func (cs ConsensusState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error + func (cs ConsensusState) ValidateBasic() error + func (m *ConsensusState) Marshal() (dAtA []byte, err error) + func (m *ConsensusState) MarshalTo(dAtA []byte) (int, error) + func (m *ConsensusState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ConsensusState) Reset() + func (m *ConsensusState) Size() (n int) + func (m *ConsensusState) String() string + func (m *ConsensusState) Unmarshal(dAtA []byte) error + func (m *ConsensusState) XXX_DiscardUnknown() + func (m *ConsensusState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ConsensusState) XXX_Merge(src proto.Message) + func (m *ConsensusState) XXX_Size() int + func (m *ConsensusState) XXX_Unmarshal(b []byte) error + type Data interface + type Header struct + NewDiversifier string + NewPublicKey *types.Any + Signature []byte + Timestamp uint64 + func (*Header) Descriptor() ([]byte, []int) + func (*Header) ProtoMessage() + func (Header) ClientType() string + func (h Header) GetPubKey() (cryptotypes.PubKey, error) + func (h Header) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error + func (h Header) ValidateBasic() error + func (m *Header) Marshal() (dAtA []byte, err error) + func (m *Header) MarshalTo(dAtA []byte) (int, error) + func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Header) Reset() + func (m *Header) Size() (n int) + func (m *Header) String() string + func (m *Header) Unmarshal(dAtA []byte) error + func (m *Header) XXX_DiscardUnknown() + func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Header) XXX_Merge(src proto.Message) + func (m *Header) XXX_Size() int + func (m *Header) XXX_Unmarshal(b []byte) error + type HeaderData struct + NewDiversifier string + NewPubKey *types.Any + func (*HeaderData) Descriptor() ([]byte, []int) + func (*HeaderData) ProtoMessage() + func (hd HeaderData) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error + func (m *HeaderData) Marshal() (dAtA []byte, err error) + func (m *HeaderData) MarshalTo(dAtA []byte) (int, error) + func (m *HeaderData) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *HeaderData) Reset() + func (m *HeaderData) Size() (n int) + func (m *HeaderData) String() string + func (m *HeaderData) Unmarshal(dAtA []byte) error + func (m *HeaderData) XXX_DiscardUnknown() + func (m *HeaderData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *HeaderData) XXX_Merge(src proto.Message) + func (m *HeaderData) XXX_Size() int + func (m *HeaderData) XXX_Unmarshal(b []byte) error + type LightClientModule struct + func NewLightClientModule(cdc codec.BinaryCodec) LightClientModule + func (LightClientModule) VerifyUpgradeAndUpdateState(ctx sdk.Context, clientID string, ...) error + func (l *LightClientModule) RegisterStoreProvider(storeProvider exported.ClientStoreProvider) + func (l LightClientModule) CheckForMisbehaviour(ctx sdk.Context, clientID string, clientMsg exported.ClientMessage) bool + func (l LightClientModule) Initialize(ctx sdk.Context, clientID string, clientStateBz, consensusStateBz []byte) error + func (l LightClientModule) LatestHeight(ctx sdk.Context, clientID string) exported.Height + func (l LightClientModule) RecoverClient(ctx sdk.Context, clientID, substituteClientID string) error + func (l LightClientModule) Status(ctx sdk.Context, clientID string) exported.Status + func (l LightClientModule) TimestampAtHeight(ctx sdk.Context, clientID string, height exported.Height) (uint64, error) + func (l LightClientModule) UpdateState(ctx sdk.Context, clientID string, clientMsg exported.ClientMessage) []exported.Height + func (l LightClientModule) UpdateStateOnMisbehaviour(ctx sdk.Context, clientID string, clientMsg exported.ClientMessage) + func (l LightClientModule) VerifyClientMessage(ctx sdk.Context, clientID string, clientMsg exported.ClientMessage) error + func (l LightClientModule) VerifyMembership(ctx sdk.Context, clientID string, height exported.Height, ...) error + func (l LightClientModule) VerifyNonMembership(ctx sdk.Context, clientID string, height exported.Height, ...) error + type Misbehaviour struct + Sequence uint64 + SignatureOne *SignatureAndData + SignatureTwo *SignatureAndData + func (*Misbehaviour) Descriptor() ([]byte, []int) + func (*Misbehaviour) ProtoMessage() + func (Misbehaviour) ClientType() string + func (Misbehaviour) Type() string + func (m *Misbehaviour) Marshal() (dAtA []byte, err error) + func (m *Misbehaviour) MarshalTo(dAtA []byte) (int, error) + func (m *Misbehaviour) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Misbehaviour) Reset() + func (m *Misbehaviour) Size() (n int) + func (m *Misbehaviour) String() string + func (m *Misbehaviour) Unmarshal(dAtA []byte) error + func (m *Misbehaviour) XXX_DiscardUnknown() + func (m *Misbehaviour) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Misbehaviour) XXX_Merge(src proto.Message) + func (m *Misbehaviour) XXX_Size() int + func (m *Misbehaviour) XXX_Unmarshal(b []byte) error + func (misbehaviour Misbehaviour) ValidateBasic() error + type SignBytes struct + Data []byte + Diversifier string + Path []byte + Sequence uint64 + Timestamp uint64 + func (*SignBytes) Descriptor() ([]byte, []int) + func (*SignBytes) ProtoMessage() + func (m *SignBytes) Marshal() (dAtA []byte, err error) + func (m *SignBytes) MarshalTo(dAtA []byte) (int, error) + func (m *SignBytes) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *SignBytes) Reset() + func (m *SignBytes) Size() (n int) + func (m *SignBytes) String() string + func (m *SignBytes) Unmarshal(dAtA []byte) error + func (m *SignBytes) XXX_DiscardUnknown() + func (m *SignBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SignBytes) XXX_Merge(src proto.Message) + func (m *SignBytes) XXX_Size() int + func (m *SignBytes) XXX_Unmarshal(b []byte) error + type SignatureAndData struct + Data []byte + Path []byte + Signature []byte + Timestamp uint64 + func (*SignatureAndData) Descriptor() ([]byte, []int) + func (*SignatureAndData) ProtoMessage() + func (m *SignatureAndData) Marshal() (dAtA []byte, err error) + func (m *SignatureAndData) MarshalTo(dAtA []byte) (int, error) + func (m *SignatureAndData) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *SignatureAndData) Reset() + func (m *SignatureAndData) Size() (n int) + func (m *SignatureAndData) String() string + func (m *SignatureAndData) Unmarshal(dAtA []byte) error + func (m *SignatureAndData) XXX_DiscardUnknown() + func (m *SignatureAndData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SignatureAndData) XXX_Merge(src proto.Message) + func (m *SignatureAndData) XXX_Size() int + func (m *SignatureAndData) XXX_Unmarshal(b []byte) error + func (sd SignatureAndData) ValidateBasic() error + type TimestampedSignatureData struct + SignatureData []byte + Timestamp uint64 + func (*TimestampedSignatureData) Descriptor() ([]byte, []int) + func (*TimestampedSignatureData) ProtoMessage() + func (m *TimestampedSignatureData) Marshal() (dAtA []byte, err error) + func (m *TimestampedSignatureData) MarshalTo(dAtA []byte) (int, error) + func (m *TimestampedSignatureData) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TimestampedSignatureData) Reset() + func (m *TimestampedSignatureData) Size() (n int) + func (m *TimestampedSignatureData) String() string + func (m *TimestampedSignatureData) Unmarshal(dAtA []byte) error + func (m *TimestampedSignatureData) XXX_DiscardUnknown() + func (m *TimestampedSignatureData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TimestampedSignatureData) XXX_Merge(src proto.Message) + func (m *TimestampedSignatureData) XXX_Size() int + func (m *TimestampedSignatureData) XXX_Unmarshal(b []byte) error Other modules containing this package github.com/h1uf/ibc-go/v9