optimism
optimism copied to clipboard
kona-sp1: Ensure expensive operations are offloaded to the host
For evm operations, the kona-sp1 program installs a custom implementation of cryptographic operations via revm hooks. The custom implementation is optimized for the sp1 zkVM. However, there are still a couple areas where the program runs keccak and sha2 outside the evm. We need to ensure that these don't use native riscv implementations, but utilize the sp1 host via its syscall interface.