Function indyrs::did::qualify_did[][src]

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

Update DID stored in the wallet to make fully qualified, or to do other DID maintenance. - If the DID has no method, a method will be appended (prepend did:peer to a legacy did) - If the DID has a method, a method will be updated (migrate did:peer to did:peer-new)

Update DID related entities stored in the wallet.

Arguments

  • wallet_handle - wallet handle (created by Wallet::open)
  • did - target DID stored in the wallet.
  • method - method to apply to the DID.

Returns

fully qualified did