Function libindy_sys::indy_prover_search_credentials_for_proof_req[][src]

pub unsafe extern "C" fn indy_prover_search_credentials_for_proof_req(
    command_handle: indy_handle_t,
    wallet_handle: indy_handle_t,
    proof_request_json: *const c_char,
    extra_query_json: *const c_char,
    cb: indy_handle_cb
) -> indy_error_t

Search for credentials matching the given proof request.

Instead of immediately returning of fetched credentials this call returns search_handle that can be used later to fetch records by small batches (with indy_prover_fetch_credentials_for_proof_req).

#Params wallet_handle: wallet handler (created by open_wallet). proof_request_json: proof request json { "name": string, "version": string, "nonce": string, "requested_attributes": { // set of requested attributes "<attr_referent>": <attr_info>, // see below ..., }, "requested_predicates": { // set of requested predicates "<predicate_referent>": <predicate_info>, // see below ..., }, "non_revoked": Optional<<non_revoc_interval>>, // see below, // If specified prover must proof non-revocation // for date in this interval for each attribute // (can be overridden on attribute level) } extra_query_json:(Optional) List of extra queries that will be applied to correspondent attribute/predicate: { "<attr_referent>": , "<predicate_referent>": , } where wql query: indy-sdk/doc/design/011-wallet-query-language/README.md cb: Callback that takes command result as parameter.

#Returns search_handle: Search handle that can be used later to fetch records by small batches (with indy_prover_fetch_credentials_for_proof_req)

#Errors Annoncreds* Common* Wallet*