Function libindy_sys::indy_key_for_local_did[][src]

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

Returns ver key (key id) for the given DID.

"indy_key_for_local_did" call looks data stored in the local wallet only and skips freshness checking.

Note if you want to get fresh data from the ledger you can use "indy_key_for_did" call instead.

Note that "indy_create_and_store_my_did" makes similar wallet record as "indy_create_key". As result we can use returned ver key in all generic crypto and messaging functions.

#Params command_handle: Command handle to map callback to caller context. wallet_handle: Wallet handle (created by open_wallet). did - The DID to resolve key. 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.
  • key - The DIDs ver key (key id).

#Errors Common* Wallet* Crypto*