Function libindy_sys::indy_prover_fetch_credentials[][src]

pub unsafe extern "C" fn indy_prover_fetch_credentials(
    command_handle: indy_handle_t,
    search_handle: indy_handle_t,
    count: indy_u32_t,
    cb: indy_str_cb
) -> indy_error_t

Fetch next credentials for search.

#Params search_handle: Search handle (created by indy_prover_search_credentials) count: Count of credentials to fetch cb: Callback that takes command result as parameter.

#Returns credentials_json: List of human readable credentials: [{ "referent": string, // cred_id in the wallet "attrs": {"key1":"raw_value1", "key2":"raw_value2"}, "schema_id": string, "cred_def_id": string, "rev_reg_id": Optional, "cred_rev_id": Optional }] NOTE: The list of length less than the requested count means credentials search iterator is completed.

#Errors Annoncreds* Common* Wallet*