Versions in this module Expand all Collapse all v0 v0.1.4 Apr 10, 2023 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 AppModuleBasic struct + func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage + func (AppModuleBasic) GetQueryCmd() *cobra.Command + func (AppModuleBasic) GetTxCmd() *cobra.Command + 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 (cs *ClientState) VerifyMembership(ctx sdk.Context, clientStore sdk.KVStore, cdc codec.BinaryCodec, ...) error + func (cs *ClientState) VerifyNonMembership(ctx sdk.Context, clientStore sdk.KVStore, cdc codec.BinaryCodec, ...) error + func (cs ClientState) CheckForMisbehaviour(_ sdk.Context, _ codec.BinaryCodec, _ sdk.KVStore, ...) bool + func (cs ClientState) CheckSubstituteAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, subjectClientStore, _ sdk.KVStore, ...) error + func (cs ClientState) ClientType() string + func (cs ClientState) ExportMetadata(_ sdk.KVStore) []exported.GenesisMetadata + func (cs ClientState) GetLatestHeight() exported.Height + func (cs ClientState) GetTimestampAtHeight(_ sdk.Context, clientStore sdk.KVStore, cdc codec.BinaryCodec, ...) (uint64, error) + func (cs ClientState) Initialize(_ sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, ...) error + func (cs ClientState) Status(_ sdk.Context, _ sdk.KVStore, _ codec.BinaryCodec) exported.Status + func (cs ClientState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error + func (cs ClientState) UpdateState(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, ...) []exported.Height + func (cs ClientState) UpdateStateOnMisbehaviour(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, ...) + func (cs ClientState) Validate() error + func (cs ClientState) VerifyClientMessage(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, ...) error + func (cs ClientState) VerifyUpgradeAndUpdateState(_ sdk.Context, _ codec.BinaryCodec, _ sdk.KVStore, _ exported.ClientState, ...) error + func (cs ClientState) ZeroCustomFields() exported.ClientState + 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 Misbehaviour struct + Sequence uint64 + SignatureOne *SignatureAndData + SignatureTwo *SignatureAndData + func (*Misbehaviour) Descriptor() ([]byte, []int) + func (*Misbehaviour) ProtoMessage() + 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) ClientType() string + func (misbehaviour Misbehaviour) Type() string + 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 v0.0.1 Aug 7, 2023 Changes in this version + func Name() string