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

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

Provider of runtime host functionality.

Required methods

fn get_caller(&self) -> AccountHash

This method should return the caller of the current context.

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

Gets named key under a name.

fn put_key(&mut self, name: &str, key: Key)

Puts key under a name.

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

Returns a 32-byte BLAKE2b digest

Loading content...

Implementors

Loading content...