Function libindy_sys::indy_prover_search_credentials[][src]

pub unsafe extern "C" fn indy_prover_search_credentials(
    command_handle: indy_handle_t,
    wallet_handle: indy_handle_t,
    query_json: *const c_char,
    cb: indy_handle_u32_cb
) -> indy_error_t

Search for credentials stored in wallet. Credentials can be filtered by tags created during saving of credential.

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).

#Params wallet_handle: wallet handler (created by open_wallet). query_json: Wql query filter for credentials searching based on tags. where 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) total_count: Total count of records

#Errors Annoncreds* Common* Wallet*