[][src]Function indyrs::did::key_for_local_did

pub fn key_for_local_did(
    wallet_handle: IndyHandle,
    did: &str
) -> Box<dyn Future<Item = String, Error = IndyError>>

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

"get_ver_key_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 "get_ver_key" call instead.

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

Arguments

  • wallet_handle - Wallet handle (created by Wallet::open).
  • did - The DID to resolve key.

Returns

  • key - The DIDs ver key (key id).