Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
kakarot brother
Browse files Browse the repository at this point in the history
  • Loading branch information
feltroidprime committed Nov 7, 2024
1 parent 437a5b2 commit d505220
Show file tree
Hide file tree
Showing 3 changed files with 500 additions and 55 deletions.
6 changes: 2 additions & 4 deletions crates/evm/src/precompiles.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ mod sha256;
pub use blake2f::Blake2f;
pub use ec_operations::ec_add::EcAdd;
pub use ec_operations::ec_mul::EcMul;
pub use ec_operations::ec_pairing::EcPairing;
pub use ec_recover::EcRecover;
pub use identity::Identity;
pub use modexp::ModExp;
Expand Down Expand Up @@ -104,10 +105,7 @@ pub impl PrecompilesImpl of Precompiles {
0x05 => { ModExp::exec(input)? },
0x06 => { EcAdd::exec(input)? },
0x07 => { EcMul::exec(input)? },
0x08 => {
// we should never reach this branch!
panic!("pre-compile at address {:?} isn't implemented yet", precompile_address)
},
0x08 => { EcPairing::exec(input)? },
0x09 => { Blake2f::exec(input)? },
0x0a => {
// Point Evaluation
Expand Down
1 change: 1 addition & 0 deletions crates/evm/src/precompiles/ec_operations.cairo
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pub(crate) mod ec_add;
pub(crate) mod ec_mul;
pub(crate) mod ec_pairing;
use core::circuit::CircuitElement as CE;
use core::circuit::CircuitInput as CI;
use core::circuit::{
Expand Down
Loading

0 comments on commit d505220

Please sign in to comment.