Skip to content

Commit

Permalink
chore(client): Ensure p256 precompile activation
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Aug 16, 2024
1 parent 810638a commit 40803d1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bin/client/src/l2/precompiles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ use alloc::sync::Arc;
use kona_executor::PrecompileOverride;
use kona_mpt::{TrieDB, TrieDBFetcher, TrieDBHinter};
use revm::{
handler::register::EvmHandler, precompile::PrecompileSpecId, ContextPrecompiles, State,
handler::register::EvmHandler, precompile::PrecompileSpecId, primitives::SpecId,
ContextPrecompiles, State,
};

mod bn128_pair;
Expand Down Expand Up @@ -51,6 +52,13 @@ where
];
ctx_precompiles.extend(override_precompiles);

if spec_id.is_enabled_in(SpecId::FJORD) {
ctx_precompiles.extend([
// EIP-7212: secp256r1 P256verify
revm::precompile::secp256r1::P256VERIFY,
]);
}

ctx_precompiles
});
}
Expand Down

0 comments on commit 40803d1

Please sign in to comment.