Function libindy_sys::indy_prover_fetch_credentials_for_proof_req[][src]

pub unsafe extern "C" fn indy_prover_fetch_credentials_for_proof_req(
    command_handle: indy_handle_t,
    search_handle: indy_handle_t,
    item_referent: *const c_char,
    count: indy_u32_t,
    cb: indy_str_cb
) -> indy_error_t

Fetch next credentials for the requested item using proof request search handle (created by indy_prover_search_credentials_for_proof_req).

#Params search_handle: Search handle (created by indy_prover_search_credentials_for_proof_req) item_referent: Referent of attribute/predicate in the proof request count: Count of credentials to fetch cb: Callback that takes command result as parameter.

#Returns credentials_json: List of credentials for the given proof request. [{ cred_info: <credential_info>, interval: Optional<non_revoc_interval> }] where credential_info: { "referent": , "attrs": {"attr_name" : "attr_raw_value"}, "schema_id": string, "cred_def_id": string, "rev_reg_id": Optional, "cred_rev_id": Optional, } non_revoc_interval: { "from": Optional, // timestamp of interval beginning "to": Optional, // timestamp of interval ending } NOTE: The list of length less than the requested count means that search iterator correspondent to the requested <item_referent> is completed.

#Errors Annoncreds* Common* Wallet*