[][src]Function indyrs::ledger::sign_and_submit_request

pub fn sign_and_submit_request(
    pool_handle: IndyHandle,
    wallet_handle: IndyHandle,
    submitter_did: &str,
    request_json: &str
) -> Box<dyn Future<Item = String, Error = IndyError>>

Signs and submits request message to validator pool.

Adds submitter information to passed request json, signs it with submitter sign key (see Crypto::sign), and sends signed request message to validator pool (see Pool::write_request).

Arguments

  • pool_handle - pool handle (created by Pool::open_ledger).
  • wallet_handle - wallet handle (created by Wallet::open).
  • submitter_did - Id of Identity stored in secured Wallet.
  • request_json - Request data json.

Returns

Request result as json.