Trait casper_types::auction::RuntimeProvider[][src]

pub trait RuntimeProvider {
    fn get_caller(&self) -> AccountHash;
fn get_key(&self, name: &str) -> Option<Key>;
fn blake2b<T: AsRef<[u8]>>(&self, data: T) -> [u8; 32]; }

Provider of runtime host functionality.

Required methods

fn get_caller(&self) -> AccountHash[src]

This method should return the caller of the current context.

fn get_key(&self, name: &str) -> Option<Key>[src]

Gets named key under a name.

fn blake2b<T: AsRef<[u8]>>(&self, data: T) -> [u8; 32][src]

Returns a 32-byte BLAKE2b digest

Loading content...

Implementors

Loading content...