How does relayer know where to get the packet? #183
-
As far as I know, chain stores the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
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 interpret the packet data. Hopefully that gives an intuition as to why the relayer doesn't need any information about what the packet data is in order to do its jobs of relaying. Does that fully answer your question though? |
Beta Was this translation helpful? Give feedback.
-
Is this description accurate? |
Beta Was this translation helpful? Give feedback.
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…