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: Kakarot messaging system #850

Open
2 tasks
enitrat opened this issue Aug 22, 2024 · 0 comments
Open
2 tasks

feat: Kakarot messaging system #850

enitrat opened this issue Aug 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@enitrat
Copy link
Collaborator

enitrat commented Aug 22, 2024

Feature Request

Describe the Feature Request

Implement Kakarot's messaging system

  • L1 -> L2 Messaging
  • L2 -> L1 Messaging

Describe Preferred Solution

Related Code

Additional Context

As a precompile at address 75002.

For Kakarot Precompiles (calling Cairo contract), the whitelist on who can call a precompile is based on the address of the code that calls this precompile. https://github.com/kkrt-labs/kakarot/blob/f1e7ebb9599a563aec9ffabbf11739373de8587c/src/kakarot/interpreter.cairo#L71-L77 https://github.com/kkrt-labs/kakarot/blob/f1e7ebb9599a563aec9ffabbf11739373de8587c/src/kakarot/precompiles/precompiles.cairo#L138

References:

https://github.com/kkrt-labs/kakarot/blob/65e333a0d3475e81b0a6367b0f00561c763da0a0/src/kakarot/precompiles/kakarot_precompiles.cairo#L126-L172

https://github.com/kkrt-labs/kakarot/blob/65e333a0d3475e81b0a6367b0f00561c763da0a0/src/kakarot/kakarot.cairo#L338-L354

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
Status: 🆕 Backlog
Development

No branches or pull requests

1 participant