You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cairo core contract takes application specific PacketData cairo serialization. So, when we are relaying packets from cosmos to starknet, we can't just pass the packet data.
The current hack to assume all the raw packet data is from ics20, so we json-deserialize to ibc ics20 packet data format and do necessary domain type conversion and then cairo-serialize. Then we put the serialized Vec<Felt> to cairo contract message for packet handlers.
Ideally, a relayer should not assume any application structure and relay any packet without knowing the details of the applications.
Cairo core contract takes application specific
PacketData
cairo serialization. So, when we are relaying packets from cosmos to starknet, we can't just pass the packet data.The current hack to assume all the raw packet data is from ics20, so we json-deserialize to ibc ics20 packet data format and do necessary domain type conversion and then cairo-serialize. Then we put the serialized
Vec<Felt>
to cairo contract message for packet handlers.Ideally, a relayer should not assume any application structure and relay any packet without knowing the details of the applications.
ibc-starknet/relayer/crates/starknet-chain-components/src/impls/messages/packet.rs
Lines 253 to 337 in c13b888
The text was updated successfully, but these errors were encountered: