pub fn list_named_keys() -> NamedKeys {
    let (total_keys, result_size) = {
        let mut total_keys = MaybeUninit::uninit();
        let mut result_size = 0;
        let ret = unsafe {
            ext_ffi::casper_load_named_keys(total_keys.as_mut_ptr(), &mut result_size as *mut usize)
        };
        api_error::result_from(ret).unwrap_or_revert();
        let total_keys = unsafe { total_keys.assume_init() };
        (total_keys, result_size)
    };
    if total_keys == 0 {
        return NamedKeys::new();
    }
    let bytes = read_host_buffer(result_size).unwrap_or_revert();
    bytesrepr::deserialize(bytes).unwrap_or_revert()
}
/// Returns the named keys of the current context.
///
/// The current context is either the caller's account or a stored contract depending on whether the
/// currently-executing module is a direct call or a sub-call respectively.
Returns the named keys of the current context.
The current context is either the caller's account or a stored contract depending on whether the
currently-executing module is a direct call or a sub-call respectively.
Returns the named keys of the current context . The current context is either the caller ' s account or a stored contract depending on whether the currently - executing module is a direct call or a sub - call respectively .
pub fn list_named_keys() -> NamedKeys {
    let (total_keys, result_size) = {
        let mut total_keys = MaybeUninit::uninit();
        let mut result_size = 0;
        let ret = unsafe {
            ext_ffi::casper_load_named_keys(total_keys.as_mut_ptr(), &mut result_size as *mut usize)
        };
        api_error::result_from(ret).unwrap_or_revert();
        let total_keys = unsafe { total_keys.assume_init() };
        (total_keys, result_size)
    };
    if total_keys == 0 {
        return NamedKeys::new();
    }
    let bytes = read_host_buffer(result_size).unwrap_or_revert();
    bytesrepr::deserialize(bytes).unwrap_or_revert()
}
pub fn list_named_keys ( ) -> NamedKeys { let ( total_keys , result_size ) = { let mut total_keys = MaybeUninit :: uninit ( ) ; let mut result_size = 0 ; let ret = unsafe { ext_ffi :: casper_load_named_keys ( total_keys . as_mut_ptr ( ) , & mut result_size as * mut usize ) } ; api_error :: result_from ( ret ) . unwrap_or_revert ( ) ; let total_keys = unsafe { total_keys . assume_init ( ) } ; ( total_keys , result_size ) } ; if total_keys == 0 { return NamedKeys :: new ( ) ; } let bytes = read_host_buffer ( result_size ) . unwrap_or_revert ( ) ; bytesrepr :: deserialize ( bytes ) . unwrap_or_revert ( ) }
Returns the named keys of the current context.
Returns the named keys of the current context .