Skip to main content
Version: Next

Implementing the ClientState interface

Learn how to implement the ClientState interface.

ClientType method

ClientType should return a unique string identifier of the light client. This will be used when generating a client identifier. The format is created as follows: {client-type}-{N} where {N} is the unique global nonce associated with a specific client (e.g 07-tendermint-0).

Validate method

Validate should validate every client state field and should return an error if any value is invalid. The light client implementer is in charge of determining which checks are required. See the Tendermint light client implementation as a reference.