[][src]Trait casper_types::mint::RuntimeProvider

pub trait RuntimeProvider {
    pub fn get_caller(&self) -> AccountHash;
pub fn put_key(&mut self, name: &str, key: Key) -> Result<(), Error>;
pub fn get_key(&self, name: &str) -> Option<Key>; }

Provider of runtime host functionality.

Required methods

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

This method should return the caller of the current context.

pub fn put_key(&mut self, name: &str, key: Key) -> Result<(), Error>[src]

This method should handle storing given Key under name.

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

This method should handle obtaining a given named Key under a name.

Loading content...

Implementors

Loading content...