Function casper_execution_engine::core::runtime::key_to_tuple[][src]

pub fn key_to_tuple(key: Key) -> Option<([u8; 32], AccessRights)>

Turns key into a ([u8; 32], AccessRights) tuple. Returns None if key is not Key::URef as it wouldn’t have AccessRights associated with it. Helper function for creating named_keys associating addresses and corresponding AccessRights.