Struct sputnikvm_precompiled_modexp::ModexpPrecompiled
[−]
[src]
pub struct ModexpPrecompiled;
Trait Implementations
impl Precompiled for ModexpPrecompiled
[src]
fn gas_and_step(
&self,
data: &[u8],
gas_limit: Gas
) -> Result<(Gas, Rc<Vec<u8>>), RuntimeError>
[src]
&self,
data: &[u8],
gas_limit: Gas
) -> Result<(Gas, Rc<Vec<u8>>), RuntimeError>
Combine step and gas together, given the gas limit.
fn step(&self, &[u8]) -> Rc<Vec<u8>>
[src]
Step a precompiled contract based on the gas required.
fn gas(&self, &[u8]) -> Gas
[src]
Gas needed for a given computation.