Skip to content

Latest commit

 

History

History
114 lines (90 loc) · 6.84 KB

README.md

File metadata and controls

114 lines (90 loc) · 6.84 KB

ibc

Abstract

This specification defines the implementation of the IBC protocol on the Cosmos SDK, the changes made to the specification and where to find each specific ICS spec within the module.

For the general specification please refer to the Interchain Standards.

Contents

  1. Applications

    1.1. Transfer

  2. Core

  3. Light Clients

    3.1 Solo Machine Client

    3.2 Tendermint Client

    3.3 Localhost Client

Implementation Details

As stated above, the IBC implementation on the Cosmos SDK introduces some changes to the general specification, in order to avoid code duplication and to take advantage of the SDK architectural components such as the transaction routing through Handlers.

Interchain Standards reference

The following list is a mapping from each Interchain Standard to their implementation in the SDK's x/ibc module:

Architecture Decision Records (ADR)

The following ADR provide the design and architecture decision of IBC-related components.

SDK Modules

IBC module architecture

NOTE for auditors: If you're not familiar with the overall module structure from the SDK modules, please check this document as prerequisite reading.

For ease of auditing, every Interchain Standard has been developed in its own package. The development team separated the IBC TAO (Transport, Authentication, Ordering) ICS specifications from the IBC application level specification. The following tree describes the architecture of the directories that the ibc (TAO) and ibc-transfer (ICS20) modules:

x/ibc
├── applications/
│   └──transfer/
├── core/
│   ├── 02-client/
│   ├── 03-connection/
│   ├── 04-channel/
│   ├── 05-port/
│   ├── 23-commitment/
│   ├── 24-host/
│   ├── client
│   │   └── cli
│   │       └── cli.go
│   ├── keeper
│   │   ├── keeper.go
│   │   └── querier.go
│   ├── types
│   │   ├── errors.go
│   │   └── keys.go
│   ├── handler.go
│   └── module.go
├── light-clients/
│   ├── 06-solomachine/
│   ├── 07-tendermint/
│   └── 09-localhost/
└── testing/