wire in rng key
good first issue
**Overview**
Currently rng key for the rng precompile is simply a default value. We need to wire in the live network rng key.
**Context**
The rng key flows from enclave -> seismic-reth -> seismic-evm -> seismic-revm. The entry point from seismic-evm -> seismic-revm is ExecuteEvm::transact
SeismicTransaction<T: Transaction> has an rng_mode field. When the rng_mode is Simulate, a default key should be used. When the mode is execute, the live key should be used.
Context::seismic() creates a SeismicChain in the EvmExecutor struct, e.g. in execute_function_call. SeismicChain has rng_container which would hold the key. Note that currently SeismicChain::new is never used.
1 条评论