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

feat: txn relayers #84

Open
shotaronowhere opened this issue Mar 7, 2023 · 1 comment
Open

feat: txn relayers #84

shotaronowhere opened this issue Mar 7, 2023 · 1 comment

Comments

@shotaronowhere
Copy link
Contributor

The merkle proofs when relaying messages are not compressible on their own, but if many messages on the receiving chain are relayed in a batch, then the L1 calldata including the merkle proofs are compressible. The L1 calldata gas cost without batched relays, where n is the number of messages in the merkle tree, log(n) for each message, so O(nlog(n)) calldata cost to relay all the messages. With calldata compression on optimistic rollups, with relay batching, the calldata cost would only be O(n)

Pay gas fees when messages are sent on the sending side (could be a reverse dutch auction) to incentivize relayers to relay the txn on the receiving chain.

@shotaronowhere
Copy link
Contributor Author

the txn relay incentive can be implemented at the gateway level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants