Introducing a new way to review your PRs.

Read the announcement

lfdt-ibc / ibc-go

Inter-Blockchain Communication Protocol (IBC) implementation in Golang.

View on GitHub

20 documents · Updated Nov 13, 2026

overview

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/** and modules/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 under modules/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