Skip to content

Commit

Permalink
feat: enable secp256r1 annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Oct 17, 2024
1 parent f6f599c commit ab1eaa7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/client/src/precompiles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ pub(crate) const ANNOTATED_KZG_EVAL: PrecompileWithAddress = create_annotated_pr
);
pub(crate) const ANNOTATED_EC_RECOVER: PrecompileWithAddress =
create_annotated_precompile!(revm::precompile::secp256k1::ECRECOVER, "ec-recover");
pub(crate) const ANNOTATED_SECP256R1_VERIFY: PrecompileWithAddress =
create_annotated_precompile!(secp256r1::P256VERIFY, "secp256r1-verify");

// Source: https://github.com/anton-rs/kona/blob/main/bin/client/src/fault/handler/mod.rs#L20-L42
pub fn zkvm_handle_register<F, H>(handler: &mut EvmHandler<'_, (), &mut State<&mut TrieDB<F, H>>>)
Expand All @@ -69,6 +71,7 @@ where
ANNOTATED_BN_PAIR,
ANNOTATED_KZG_EVAL,
ANNOTATED_EC_RECOVER,
ANNOTATED_SECP256R1_VERIFY,
];
ctx_precompiles.extend(override_precompiles);

Expand Down

0 comments on commit ab1eaa7

Please sign in to comment.