Trait ceres_sandbox::RuntimeInterfaces [−][src]
pub trait RuntimeInterfaces: Sized { fn seal_println(
sandbox: &mut Sandbox,
args: &[Value]
) -> Result<Option<Value>>; fn seal_random(
sandbox: &mut Sandbox,
args: &[Value]
) -> Result<Option<Value>>; fn seal_hash_sha2_256(
sandbox: &mut Sandbox,
args: &[Value]
) -> Result<Option<Value>>; fn seal_hash_keccak_256(
sandbox: &mut Sandbox,
args: &[Value]
) -> Result<Option<Value>>; fn seal_hash_blake2_256(
sandbox: &mut Sandbox,
args: &[Value]
) -> Result<Option<Value>>; fn seal_hash_blake2_128(
sandbox: &mut Sandbox,
args: &[Value]
) -> Result<Option<Value>>; fn pack(&self) -> Vec<HostCall<&'static str, &'static str, Sandbox>> { ... } }
Expand description
std runtime interfaces
Required methods
Generate random value
keccak 256
blake2 256