cosmos-sdk/x/ibc/core/spec
colin axnér e306a852ff
update core IBC docs (#7560)
* update state

* add empty concept fields, update callbacks and messages

* update client creation, update and upgrade section

* add packet lifecycle concepts

* add host and proof section

* add connection handshake section

* add channel handshakes

* state transitions

* self review fixes

* Apply suggestions from code review

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* apply @fedekunze review suggestions

* packet data section

* Apply suggestions from code review

Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>

* add @cwgoes and @fedekunze review suggestions

* fix typos

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-10-27 14:51:47 +00:00
..
01_concepts.md update core IBC docs (#7560) 2020-10-27 14:51:47 +00:00
02_state.md update core IBC docs (#7560) 2020-10-27 14:51:47 +00:00
03_state_transitions.md update core IBC docs (#7560) 2020-10-27 14:51:47 +00:00
04_messages.md update core IBC docs (#7560) 2020-10-27 14:51:47 +00:00
05_callbacks.md update core IBC docs (#7560) 2020-10-27 14:51:47 +00:00
06_events.md ibc: core restructure (#7434) 2020-10-02 06:03:02 -03:00
README.md update solo machine specs (#7512) 2020-10-13 05:36:23 -03:00

README.md

ibc

Abstract

This paper 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. Concepts
  2. State
  3. State Transitions
  4. Messages
  5. Callbacks
  6. Events

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/
│   └──ibc-transfer/
├── 02-client/
├── 02-client/
├── 03-connection/
├── 04-channel/
├── 05-port/
├── light-clients/
│   ├── 06-solomachine/
│   ├── 07-tendermint/
│   └── 09-localhost/
├── 23-commitment/
├── 24-host/
├── client
│   ├── cli
│   │   └── cli.go
│   └── rest
│       └── rest.go
├── keeper
│   ├── keeper.go
│   └── querier.go
├── types
│   ├── errors.go
│   └── keys.go
├── handler.go
└── module.go