Function indyrs::did::store_their_did[][src]

pub fn store_their_did(
    wallet_handle: WalletHandle,
    identity_json: &str
) -> Box<dyn Future<Item = (), Error = IndyError>>

Saves their DID for a pairwise connection in a secured Wallet, so that it can be used to verify transaction. Updates DID associated verkey in case DID already exists in the Wallet.

Arguments

  • wallet_handle - wallet handler (created by Wallet::open).
  • identity_json - Identity information as json.

Example:

  • identity_json { "did": string, (required) "verkey": string - optional is case of adding a new DID, and DID is cryptonym: did == verkey, - mandatory in case of updating an existing DID }