Attestation light clients
The attestations light client adapts signed claims from a fixed group of external attestors to the IBC light-client interface. It lets IBC verify a counterparty height, packet commitment, or absent packet commitment without checking the counterparty's block headers or state root. The package is experimental and supports a wire format shared with Solidity and CosmWasm attestor clients.
System role
The attestations client is an IBC verification option for systems where trusted parties report the counterparty state. Instead of deriving trust from a chain's consensus rules, it derives trust from a quorum of known ECDSA signers and stores the claims needed by IBC.
The client exposes the standard IBC operations through LightClientModule. IBC therefore uses the same client lifecycle for creation, update, packet membership, packet non-membership, status, and timestamp queries even though the evidence comes from an attestation service rather than a block-header light client. See IBC light clients for the common client model and client lifecycle for the lifecycle around these operations.
Trust model
Attestor set
The attestor set is a fixed list of Ethereum-style externally owned account addresses. A client trusts a claim only when its signatures recover to distinct addresses in that list and the number of valid signers reaches minRequiredSigs.
The signed message uses a type tag for the claim kind. State claims and packet claims therefore cannot be reused across the two verification paths. Each signature uses the ECDSA format expected by the external attestor systems, and the client normalizes the recovery byte when needed.
The trust boundary is the configured attestor set. The client does not independently prove that an attested height or commitment came from the counterparty chain. Changing the signer set requires a new client because this client has no attestor rotation operation.
References: modules/…/client_state.go• L27-69 modules/…/signature.go• L14-22 modules/…/signature.go• L34-93 modules/…/doc.go• L12-20
Quorum checks
Every update and packet proof passes through the same signer checks with a claim-specific type tag. The checks reject empty signatures, malformed signatures, unknown signers, duplicate signers, and a signer count below the configured quorum.
The quorum is a count of unique trusted signers. It is set when the client is created and must be greater than zero and no greater than the size of the trusted set. Address comparison uses the ECDSA address value, so address letter case does not create a second attestor.
References: modules/…/signature.go• L43-93 modules/…/client_state.go• L42-69 modules/…/signature_test.go• L105-141
State model
Client state
The client state describes who may speak for the counterparty and records the client's progress. It contains the trusted attestor addresses, the quorum threshold, the highest trusted height, and a frozen flag.
The height is represented with revision number zero. latestHeight advances only when an accepted state claim has a greater height. A valid claim can also store or replace a consensus state at a height that is less than or equal to the current latest height. This allows the client to retain attested timestamps for the exact heights used by later IBC proofs.
References: proto/…/attestations.proto• L11-23 modules/…/update.go• L33-60 modules/…/light_client_module.go• L175-187
Consensus state
Each consensus state is the trusted timestamp for one attested height. The timestamp is stored in the form used by IBC, while the external ABI form uses seconds and is converted to nanoseconds when decoded.
Initialization creates the first client and consensus states together. Later state claims add a consensus state at the claimed height. IBC can query the saved timestamp through TimestampAtHeight, but a missing height cannot be used for packet verification.
References: proto/…/attestations.proto• L25-31 modules/…/abi.go• L47-70 modules/…/abi.go• L136-159 modules/…/light_client_module.go• L34-60
Frozen state
The frozen flag is a permanent stop for normal client use. A frozen client rejects new state claims and both packet proof checks, while status reports Frozen; a missing client reports Unknown and an unfrozen client reports Active.
The misbehavior hook compares a new state claim with the saved timestamp at the same height. If the timestamps differ, the client marks itself frozen. Client recovery and client upgrades are not supported, so an operator must use a different client when the trust setup or client state must change.
References: modules/…/light_client_module.go• L74-104 modules/…/light_client_module.go• L156-172 modules/…/light_client_module.go• L200-208 modules/…/client_state.go• L81-95
Attestation formats
State attestations
A state attestation claims a counterparty height and timestamp. It is used only for client updates, and its ABI encoding is the shared input that external attestors sign.
The update path first verifies the state-tagged quorum. It then stores the timestamp under the claimed height and advances the client state's latest height when needed. The attestation carries no block header or state root, so its meaning depends on the attestor trust model.
References: modules/…/abi.go• L47-52 modules/…/update.go• L18-60 proto/…/attestations.proto• L33-41
Packet attestations
A packet attestation claims compact pairs of an IBC commitment path and its 32-byte commitment at one height. It is used for both membership and non-membership checks. The external format uses ABI encoding rather than the protobuf encoding used for the enclosing IBC AttestationProof.
The path in the attestation is a keccak256 digest of the IBC key path. A membership claim carries the raw commitment. A non-membership claim carries a 32-byte zero commitment for the path. This compact form lets the external attestor system report only the keys needed by an IBC proof.
References: modules/…/abi.go• L54-66 modules/…/abi.go• L79-129 proto/…/attestations.proto• L33-41 modules/…/doc.go• L18-30
Cross-platform wire format
The ABI formats are designed to carry the same attestation data between the Cosmos SDK client, the Solidity attestor client, and the CosmWasm attestor client. The outer IBC proof contains the ABI data and its signatures, while each platform maps that proof into its own IBC client interface.
This separation is important: protobuf identifies and transports the IBC client message, but ABI encoding defines the bytes that external signers agree to attest. A change to the ABI shape or signing type tag can make otherwise valid proofs incompatible across platforms.
References: modules/…/doc.go• L18-21 modules/…/README.md• L12-18 modules/…/abi.go• L47-93 modules/…/signature.go• L34-45
IBC verification flows
Client update flow
An update turns a quorum-signed external state claim into an IBC consensus state. The module validates the client message before it changes the saved client state.
flowchart LR
A[External attestors] --> B[ABI-encoded state claim]
B --> C[AttestationProof]
C --> D[State-tagged quorum check]
D --> E[Consensus state at claimed height]
E --> F[Latest height update]
The update flow is:
- IBC supplies an
AttestationProofto the client module. - The client recovers each signer and checks the trusted set and quorum.
- The client decodes the state claim and stores its timestamp at the claimed height.
- The client raises
latestHeightonly when the claimed height is higher.
The same proof may be submitted again. The resulting state remains valid and the reported updated height is the same.
References: modules/…/light_client_module.go• L63-72 modules/…/update.go• L18-60 modules/…/update_test.go• L71-98
Membership flow
Membership verification adapts an attested packet commitment to the IBC VerifyMembership interface. It does not walk a Merkle proof; it checks that the signed packet list contains the requested path and value at a known consensus height.
sequenceDiagram
participant I as IBC handler
participant L as Attestations client
participant S as Client store
participant A as Signed packet attestation
I->>L: VerifyMembership(height, path, value, proof)
L->>S: Find consensus state at height
L->>A: Verify packet-tagged quorum
L->>A: Decode packet list
L-->>I: Match hashed path and 32-byte value
The requested path must be a single-key IBC Merkle path. The client hashes that key with keccak256, then compares it with the attested path and the requested 32-byte value. The packet claim's height must equal the requested revision height, and the height must already have a stored consensus state.
References: modules/…/light_client_module.go• L117-135 modules/…/client_state.go• L72-145 modules/…/signature_test.go• L143-170
Non-membership flow
Non-membership verification uses the same packet attestation interface but requires an explicit zero commitment. This gives the IBC timeout path a signed claim that the receipt key has no value at the selected height.
The client requires a matching hashed path in the packet list. Every matching entry must contain exactly 32 zero bytes. A missing path or a non-zero commitment fails the check, so an attestor cannot prove absence by omitting the key from the claim.
References: modules/…/light_client_module.go• L137-154 modules/…/client_state.go• L147-223 e2e/…/attestations_test.go• L434-469
Packet lifecycle
IBC uses the packet verification paths to complete normal packet delivery and timeout actions. The end-to-end flow creates attestation clients, sends a packet, verifies its commitment for receipt, verifies the acknowledgement, and uses a later state attestation with a zero receipt commitment for timeout.
This makes the client useful for IBC packet transport without requiring the attestor system to expose a full counterparty consensus proof. The client still depends on the caller selecting a height for which the attestation client has a stored consensus state.
References: e2e/…/attestations_test.go• L47-222 e2e/…/attestations_test.go• L311-479
Operational boundaries
Unsupported lifecycle operations
The client implements the IBC module interface but leaves two lifecycle changes unavailable. Client recovery returns an invalid-request error, and client upgrade verification rejects every upgrade attempt.
The attestor list also has no update path. Together, these limits make the initial client state and its external signer governance part of the trust setup rather than a value that the client can change later.
References: modules/…/light_client_module.go• L200-208 modules/…/module.go• L44-60 modules/…/light_client_module_test.go• L223-235
Delay handling
The IBC verification methods accept delay periods because the shared interface requires them. The attestations client does not use those arguments in its membership or non-membership checks. Its proof freshness model comes from the selected stored consensus height and the attestor claim.
References: modules/…/light_client_module.go• L117-153 modules/…/client_state.go• L72-95 modules/…/client_state.go• L147-165
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the ABI field order and tuple shape aligned with the Solidity and CosmWasm attestor clients. A change can invalidate signatures across all platforms.
- Keep the state and packet signing tags aligned with every signer and verifier. A mismatch can look like an unknown signer even when the key is trusted.
- Keep timestamp unit conversion aligned between external seconds and stored nanoseconds. A mismatch affects timeout and timestamp queries.
- Keep path hashing and the single-key IBC path contract aligned with the external packet attestation producer. A mismatch makes valid commitments fail membership checks.
- Keep the fixed attestor set and quorum constraints aligned with client creation and any external signer governance process. The client cannot rotate the set in place.
- Keep revision number zero semantics aligned with callers that construct IBC heights for this client.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Fewer unique trusted signatures than the quorum | The update or packet proof is rejected | Configure a valid threshold and collect signatures from distinct configured addresses |
| A signature uses the wrong claim type tag | The proof fails signer verification | Sign state claims as state claims and packet claims as packet claims |
| The proof names a height without a stored consensus state | Membership or non-membership verification fails | Submit a valid state update for the proof height first |
| The packet height differs from the IBC proof height | The packet proof is rejected | Use the same revision height in the IBC request and packet attestation |
| The packet claim omits the requested path | Membership fails; non-membership is not inferred | Include the hashed path with the required value or zero commitment |
| A non-membership entry has a non-zero commitment | Non-membership verification fails | Use exactly 32 zero bytes for an absent value |
| Conflicting timestamps are attested at one saved height | The client is frozen and normal checks stop | Treat a conflicting timestamp as misbehavior and replace the client if needed |
| The client is frozen | Updates and packet verification fail | Use an unfrozen replacement client; recovery is unsupported |
Key files
| File | Why to read it |
|---|---|
| modules/…/light_client_module.go | Shows how the attestation client maps its state and proof rules to the IBC light-client interface. |
| modules/…/client_state.go | Shows the trust state and the membership and non-membership meaning of an attested packet list. |
| modules/…/update.go | Shows how state attestations become stored consensus states and update the latest height. |
| modules/…/signature.go | Shows the signer trust boundary, quorum rule, and separation between state and packet claims. |
| modules/…/abi.go | Shows the cross-platform state and packet attestation wire formats and timestamp conversion. |
| proto/…/attestations.proto | Defines the durable client state, consensus state, and enclosing IBC proof message. |
| modules/…/doc.go | States the intended trust model, external compatibility, experimental status, and broad limits. |
| e2e/…/attestations_test.go | Shows the end-to-end relationship between attested packet proofs and IBC transfer and timeout flows. |
| Tendermint light client | Provides a contrasting client model based on signed block headers and validator trust. |
| Wasm light client | Describes the IBC adapter for externally supplied Wasm client logic. |
| Local and Solo Machine clients | Compares other specialized trust and state models supported by IBC. |