[−][src]Trait evm::Precompiled
Represent a precompiled contract.
Provided methods
fn step(&self, _: &[u8]) -> Rc<Vec<u8>>
Step a precompiled contract based on the gas required.
fn gas(&self, _: &[u8]) -> Gas
Gas needed for a given computation.
fn gas_and_step(
&self,
data: &[u8],
gas_limit: Gas
) -> Result<(Gas, Rc<Vec<u8>>), RuntimeError>
&self,
data: &[u8],
gas_limit: Gas
) -> Result<(Gas, Rc<Vec<u8>>), RuntimeError>
Combine step and gas together, given the gas limit.
Implementors
impl Precompiled for ECRECPrecompiled
[src]
fn gas(&self, _: &[u8]) -> Gas
[src]
fn step(&self, datao: &[u8]) -> Rc<Vec<u8>>
[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>
impl Precompiled for IDPrecompiled
[src]
fn gas(&self, data: &[u8]) -> Gas
[src]
fn step(&self, data: &[u8]) -> Rc<Vec<u8>>
[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>
impl Precompiled for RIP160Precompiled
[src]
fn gas(&self, data: &[u8]) -> Gas
[src]
fn step(&self, data: &[u8]) -> Rc<Vec<u8>>
[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>