Function libindy_sys::indy_store_their_did [−][src]
pub unsafe extern "C" fn indy_store_their_did(
command_handle: indy_handle_t,
wallet_handle: indy_handle_t,
identity_json: *const c_char,
cb: indy_empty_cb
) -> indy_error_t
Saves their DID for a pairwise connection in a secured Wallet, so that it can be used to verify transaction.
#Params wallet_handle: wallet handler (created by open_wallet). command_handle: command handle to map callback to user context. identity_json: Identity information as json. Example: { "did": string, (required) "verkey": string (optional, can be avoided if did is cryptonym: did == verkey), } cb: Callback that takes command result as parameter.
#Returns Error Code cb:
- xcommand_handle: Command handle to map callback to caller context.
- err: Error code.
#Errors Common* Wallet* Crypto*