Function indy::api::agent::indy_agent_add_identity
[−]
[src]
#[no_mangle]pub extern "C" fn indy_agent_add_identity(
command_handle: i32,
listener_handle: i32,
pool_handle: i32,
wallet_handle: i32,
did: *const c_char,
add_identity_cb: Option<extern "C" fn(_: i32, _: ErrorCode)>
) -> ErrorCode
Add identity to listener.
Performs wallet lookup to find corresponded receiver Identity information. Information about receiver Identity must be saved in the wallet with indy_create_and_store_my_did call before this call.
After successfully add_identity listener will start to accept incoming connection to added DID.
Params
command_handle: command handle to map callback to caller context. listener_handle: listener handle (created by indy_agent_listen). pool_handle: pool handle (created by open_pool_ledger). wallet_handle: wallet handle (created by open_wallet). did: DID of identity.
add_identity_cb: Callback that will be called after identity added or on error. Will be called exactly once with result of start listen operation.
Returns
Error code add_identity_cb: - xcommand_handle: command handle to map callback to caller context. - err: Error code