Function indy::api::ledger::indy_sign_and_submit_request
[−]
[src]
#[no_mangle]pub extern "C" fn indy_sign_and_submit_request(
command_handle: i32,
pool_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 and submits request message to validator pool.
Adds submitter information to passed request json, signs it with submitter sign key (see wallet_sign), and sends signed request message to validator pool (see write_request).
Params
command_handle: command handle to map callback to caller context. pool_handle: pool handle (created by open_pool_ledger). 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
Request result as json.
Errors
Common* Wallet* Ledger* Crypto*