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

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

Signs a message by a signing key associated with my DID. The DID with a signing key must be already created and stored in a secured wallet (see create_and_store_my_identity)

Params

wallet_handle: wallet handler (created by open_wallet). command_handle: command handle to map callback to user context. did: signing DID msg: a message to be signed cb: Callback that takes command result as parameter.

Returns

a signature string

Errors

Common* Wallet* Crypto*