My Authors
Read all threads
A quick thread on the primitives that make up #ibc. There are four major ones:
1. Clients
2. Connections
3. Channels
4. Packets

🚀👨‍🚀🌔👩‍🚀👇
In IBC, a "Client" is an instance of a lite client for another chain that is committed to state. This piece is fundamental to the function of #ibc. All other primitives rely on clients to prove their data was included in the counterparty chain.

github.com/cosmos/ics/tre…
Once we have a client to prove data, we create a "Connection". This requires 4 transactions, 2 on each chain. The clients are updated throughout to prove the newly committed state on both chains.

github.com/cosmos/ics/tre…
Once this authorization has been completed, we create a "Channel". This contains the specifics of which module in the chain to send the data (the "Port") as well as ordering semantics and application protocol versioning.

github.com/cosmos/ics/tre…
The first three primitives make up a persistent link between chains that can be endlessly reused to send "Packets" which hold application data. But, the clients on each chain need to be updated at least once every unbonding period (~3 weeks), or we could no longer trust it.
Sending a "Packet" requires at least two transactions, one on the sending chain and one on the receiving chain. The #ibc spec also contains ack (confirming receipt and processing) and timeout packets.
During the sending of a packet, the receiving client gets updated so it can prove that the sending chain actually made the required state transitions, so links that are active will be frequently updated.
Understanding these four primitives will make #ibc much less confusing. To get started playing around with them, go check out the relayer I've been building! It allows you to dig into as much or as little detail as you would like while sending data between chains.
Missing some Tweet in this thread? You can try to force a refresh.

Enjoying this thread?

Keep Current with Jack Zampolin

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!