[−][src]Function indyrs::anoncreds::prover_fetch_credentials_for_proof_req
pub fn prover_fetch_credentials_for_proof_req(
search_handle: IndyHandle,
item_referent: &str,
count: usize
) -> Box<dyn Future<Item = String, Error = IndyError>>
Fetch next credentials for the requested item using proof request search handle (created by search_credentials_for_proof_req).
Arguments
search_handle
: Search handle (created by search_credentials_for_proof_req)item_referent
: Referent of attribute/predicate in the proof requestcount
: Count of credentials to fetch
Returns
credentials_json
: List of credentials for the given proof request. [{ cred_info: <credential_info>, interval: Optional<non_revoc_interval> }] wherecredential_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.