Struct sputnikvm::RIP160Precompiled
[−]
[src]
pub struct RIP160Precompiled;
RIP160 precompiled contract.
Trait Implementations
impl Precompiled for RIP160Precompiled
[src]
fn gas(&self, data: &[u8]) -> Gas
[src]
Gas needed for a given computation.
fn step(&self, data: &[u8]) -> Rc<Vec<u8>>
[src]
Step a precompiled contract based on the gas required.
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.