Skip to content

How does relayer know where to get the packet? #183

Answered by plafer
ImJeremyHe asked this question in Q&A
Discussion options

You must be logged in to vote

By design, the relayer doesn't know what the packet is about, and doesn't need to. This is analogous to the IP protocol: you don't need to know what the data is about to route the packet to the destination.

Intuitively, all the relayer does is send the packet data to the destination chain (on the appropriate channel/port), along with a proof that the packet really was sent by the sending chain. The destination chain then convinces itself that the packet really was sent (by checking the proof), and gives the packet data to the appropriate IBC module (i.e. bound to the destination port), e.g. the ICS-20 transfer module. In this example, the transfer module is the component that knows how to…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@ImJeremyHe
Comment options

@plafer
Comment options

@ImJeremyHe
Comment options

Answer selected by plafer
Comment options

You must be logged in to vote
1 reply
@plafer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants