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

pub fn store_their_did(
    wallet_handle: IndyHandle,
    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.

Arguments

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

Example:

  • identity_json { "did": string, (required) "verkey": string (optional, can be avoided if did is cryptonym: did == verkey), }