[−][src]Function indyrs::did::key_for_did
pub fn key_for_did(
pool_handle: IndyHandle,
wallet_handle: IndyHandle,
did: &str
) -> Box<dyn Future<Item = String, Error = IndyError>>
Returns ver key (key id) for the given DID.
"get_ver_key" call follow the idea that we resolve information about their DID from the ledger with cache in the local wallet. The "indy_Wallet::open" call has freshness parameter that is used for checking the freshness of cached pool value.
Note if you don't want to resolve their DID info from the ledger you can use "get_ver_key" call instead that will look only to the local wallet and skip freshness checking.
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
pool_handle
- Pool handle (created by Pool::open).wallet_handle
- Wallet handle (created by Wallet::open).did
- The DID to resolve key.
Returns
key
- The DIDs ver key (key id).