kkrt-labs / kakarot-ssj

Kakarot zkEVM - rewrite in the latest version of Cairo
https://www.kakarot.org
MIT License
137 stars 83 forks source link

feat: Kakarot Cairo interop #851

Open enitrat opened 3 months ago

enitrat commented 3 months ago

Feature Request

Describe the Feature Request

Develop Kakarot's interoperabillity module with Cairo contracts. As a precompile at address 75001.

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

Describe Preferred Solution

Related Code

Additional Context

Reference:

ScottyDavies commented 3 months ago

HELLO @enitrat can you please assign this issue to me?