Struct sputnikvm::SHA256Precompiled
[−]
[src]
pub struct SHA256Precompiled;
SHA256 precompiled contract.
Trait Implementations
impl Precompiled for SHA256Precompiled
[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.