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

Utilize Calldata Compression in Backend for L2s #29

Open
Philogy opened this issue Nov 14, 2023 · 1 comment
Open

Utilize Calldata Compression in Backend for L2s #29

Philogy opened this issue Nov 14, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Philogy
Copy link
Contributor

Philogy commented Nov 14, 2023

Not too long ago I contributed some optimizations including adding a calldata compression function to the packages/contracts/src/EmailWalletCore.sol contract. However this is not being used yet.

To do so you need to add something in the backend that passes calldata through the following compression function (implemented in Solidity): https://github.com/Vectorized/solady/blob/main/src/utils/LibZip.sol#L171-L210. You can either re-implement it in Rust or try to run the code in your backend.

Not exactly sure how you'd do this as I'm not familiar with your backend / ether-rs but this can probably be achieved with a custom middleware that feeds all calldata through the function if you're on the right chain and calling the right contract.

@saleel saleel added the enhancement New feature or request label Jan 6, 2024
@wshino wshino self-assigned this Jan 11, 2024
@wshino
Copy link
Contributor

wshino commented Jan 11, 2024

Let me start to consider how to implement this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants