Function libindy_sys::indy_get_key_metadata[][src]

pub unsafe extern "C" fn indy_get_key_metadata(
    command_handle: indy_handle_t,
    wallet_handle: indy_handle_t,
    verkey: *const c_char,
    cb: indy_str_cb
) -> indy_error_t

Retrieves the meta information for the giving key in the wallet.

#Params command_handle: Command handle to map callback to caller context. wallet_handle: Wallet handle (created by open_wallet). verkey - The key (verkey, key id) to retrieve metadata. cb: Callback that takes command result as parameter.

#Returns Error Code cb:

  • xcommand_handle: Command handle to map callback to caller context.
  • err: Error code.
  • metadata - The meta information stored with the key; Can be null if no metadata was saved for this key.

#Errors Common* Wallet* Crypto*