Knowledge Base updated: 2026-11-12
ibc-go knowledge base
ibc-go is the Cosmos SDK implementation of Inter-Blockchain Communication (IBC): core protocol modules establish and verify cross-chain state, application modules move assets and execute cross-chain behaviors, and light clients provide verification implementations.
The main code is organized under modules/core, modules/apps, and modules/light-clients. Reusable protocol test infrastructure is in testing, while executable simulated chains and multi-node integration scenarios live in simapp and e2e.
Critical state is maintained through IBC keepers and Cosmos SDK stores: client, connection, channel, packet, commitment, port, and application-module state are keyed through host paths and accessed by their respective keepers.
flowchart TD
LC[Light clients] --> CL[Core client module]
CL --> CN[Connection module]
CN --> CH[Channel module]
CH --> CM[Commitment and host paths]
CH --> AP[IBC application interface]
AP --> TR[Transfer]
AP --> ICA[Interchain accounts]
AP --> GMP[Generalized message passing]
AP --> MW[Middleware]
MW --> PFM[Packet-forward middleware]
MW --> CB[Callbacks]
MW --> RL[Rate limiting]
CL --> K[Core keepers and module wiring]
K --> SDK[Cosmos SDK runtime and stores]
T[Testing harness] --> SDK
E[E2E suite and simapp] --> SDK
Glossary
- IBC client: on-chain light-client state used to verify a counterparty chain's consensus and proofs.
- Connection: a verified relationship between two IBC clients that supplies the transport context for channels.
- Channel: an application-facing transport endpoint bound to a port and connection hop.
- Packet commitment: the stored commitment that records an outbound packet until acknowledgement or timeout processing resolves it.
- Denom trace: the transfer-path history used by ICS-20 to identify native tokens and vouchers.
Codebase-wide invariants
- Cross-chain state transitions depend on verified client state and proofs; client lifecycle logic is rooted in
modules/core/02-client/**. - Connection and channel handshakes retain explicit state-machine transitions and proof checks in
modules/core/03-connection/keeper/**andmodules/core/04-channel/keeper/**. - Packet send, receive, acknowledgement, and timeout processing is commitment-backed, with paths defined under
modules/core/24-host/**and commitment primitives undermodules/core/23-commitment/**. - Application modules interact with transport through IBC module and middleware boundaries rather than bypassing channel packet processing; see modules/…/ibc_module.go and modules/…/ibc_middleware.go.
- Test scenarios assemble chains through shared coordinator, endpoint, path, and mock abstractions in
testing/**.
Routing table
-
modules/core/02-client/**-> docs/client-lifecycle.md -
modules/core/03-connection/**-> docs/connection-handshake.md -
modules/core/04-channel/**-> docs/channel-and-packet-lifecycle.md -
modules/core/05-port/**-> docs/channel-and-packet-lifecycle.md -
modules/core/23-commitment/**-> docs/core-state-and-keeper.md -
modules/core/24-host/**-> docs/core-state-and-keeper.md -
modules/core/keeper/**-> docs/core-state-and-keeper.md -
modules/core/{genesis.go,module.go,ante/**,api/**,types/**,migrations/**}-> docs/core-state-and-keeper.md -
modules/core/**-> docs/core-ibc-protocol.md -
proto/ibc/core/**-> docs/core-ibc-protocol.md -
modules/apps/transfer/**-> docs/token-transfer.md -
proto/ibc/applications/transfer/**-> docs/token-transfer.md -
modules/apps/27-interchain-accounts/**-> docs/interchain-accounts.md -
proto/ibc/applications/interchain_accounts/**-> docs/interchain-accounts.md -
modules/apps/27-gmp/**-> docs/general-message-passing.md -
proto/ibc/applications/gmp/**-> docs/general-message-passing.md -
modules/apps/packet-forward-middleware/**-> docs/packet-forwarding.md -
proto/ibc/applications/packet_forward_middleware/**-> docs/packet-forwarding.md -
modules/apps/callbacks/**-> docs/callbacks-and-rate-limiting.md -
modules/apps/rate-limiting/**-> docs/callbacks-and-rate-limiting.md -
proto/ibc/applications/rate_limiting/**-> docs/callbacks-and-rate-limiting.md -
modules/apps/**-> docs/ibc-application-modules.md -
modules/light-clients/07-tendermint/**-> docs/tendermint-light-client.md -
proto/ibc/lightclients/tendermint/**-> docs/tendermint-light-client.md -
modules/light-clients/08-wasm/**-> docs/wasm-light-client.md -
proto/ibc/lightclients/wasm/**-> docs/wasm-light-client.md -
modules/light-clients/06-solomachine/**-> docs/local-and-solomachine-clients.md -
modules/light-clients/09-localhost/**-> docs/local-and-solomachine-clients.md -
proto/ibc/lightclients/solomachine/**-> docs/local-and-solomachine-clients.md -
modules/light-clients/attestations/**-> docs/attestation-light-clients.md -
proto/ibc/lightclients/attestations/**-> docs/attestation-light-clients.md -
modules/light-clients/**-> docs/ibc-light-clients.md -
testing/**-> docs/go-testing-harness.md -
simapp/**-> docs/end-to-end-suite-and-simulation-app.md -
testing/**-> docs/integration-and-test-infrastructure.md -
simapp/**-> docs/integration-and-test-infrastructure.md