Function sovrin::api::signus::sovrin_store_their_did [] [src]

#[no_mangle]
pub extern "C" fn sovrin_store_their_did(
    command_handle: i32,
    wallet_handle: i32,
    identity_json: *const c_char,
    cb: Option<extern "C" fn(_: i32, _: ErrorCode)>
) -> ErrorCode

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, if only pk is provided), "crypto_type": string, (optional; if not set then ed25519 curve is used; currently only 'ed25519' value is supported for this field) } cb: Callback that takes command result as parameter.

Returns

None

Errors

Common* Wallet* Crypto*