Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store lane message content off-chain #2479

Open
tomusdrw opened this issue Nov 23, 2021 · 0 comments
Open

Store lane message content off-chain #2479

tomusdrw opened this issue Nov 23, 2021 · 0 comments

Comments

@tomusdrw
Copy link
Contributor

tomusdrw commented Nov 23, 2021

The idea is to change existing pallet-bridge-messages (#215) and to avoid storing message content on-chain.

Instead we should only store the hash of the message and let the relayers deliver the full content of the Target chain by inspecting either:

  1. Events of that block
  2. Some off-chain storage
  3. Some other mechanism (perhaps bridge-specific storage entry that get's cleared every now and then (maybe every block like events)).

Obviously the target chain would additionally be responsible for verifying the correctness of messages (by hashing and comparing with the expected results).

This should reduce storage costs and hence message sending costs as well (also related #704)

The issue is both about the Runtime part and the Relayer part, but in the future it should be split.

@EmmanuellNorbertTulbure EmmanuellNorbertTulbure transferred this issue from paritytech/parity-bridges-common Aug 25, 2023
@the-right-joyce the-right-joyce transferred this issue from paritytech/polkadot-sdk Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants