Function indy::api::ledger::indy_sign_request
[−]
[src]
#[no_mangle]pub extern "C" fn indy_sign_request(
command_handle: i32,
wallet_handle: i32,
submitter_did: *const c_char,
request_json: *const c_char,
cb: Option<extern "C" fn(_: i32, _: ErrorCode, _: *const c_char)>
) -> ErrorCode
Signs request message.
Adds submitter information to passed request json, signs it with submitter sign key (see wallet_sign).
Params
command_handle: command handle to map callback to caller context. wallet_handle: wallet handle (created by open_wallet). submitter_did: Id of Identity stored in secured Wallet. request_json: Request data json. cb: Callback that takes command result as parameter.
Returns
Signed request json.
Errors
Common* Wallet* Ledger* Crypto*