-
DescriptionPrecompiles are implemented natively in the client software, e.g. in How does Cannon (the default Fault Proof VM in OP Stack) work when there is a dispute for a transaction that calls a precompile, e.g. the How can the onchain Additional InformationI understand that there is this Global Precompile Key, which signifies a "precompile result". But I still don't see how that helps. What if the rollup operator spoofed the precompile logic itself? Wouldn't the challenger have to trust that the pre-image key was generated using a genuine precompile? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
There are two different methods of executing precompiles in the fault proof program:
Most precompiles (apart from the accelerated ones [ The accelerated precompiles are outsourced to the host due to how expensive they are to run (in terms of clock cycles) on top of the FPVM. For these, the result is pulled in through the Critically, on-chain, all data consumed from the |
Beta Was this translation helpful? Give feedback.
There are two different methods of executing precompiles in the fault proof program:
MIPS
thread context (MIPS.sol
/cannon
)PreimageOracle
ABI.Most precompiles (apart from the accelerated ones [
ecrecover
,bn256Pairing
,KZG Point Evaluation
]) run in an EVM within the fault proof program (method # 1 above). If any portion of EVM execution (or any fault proof program execution, for that matter) is spoofed, it is disputed as normal by bisecting to the first agreed-upon prestate and performing an instruction step on-chain within the dispute game.T…