[][src]Function indyrs::anoncreds::prover_get_credentials

pub fn prover_get_credentials(
    wallet_handle: WalletHandle,
    filter_json: Option<&str>
) -> Box<dyn Future<Item = String, Error = IndyError>>

Gets human readable credentials according to the filter. If filter is NULL, then all credentials are returned. Credentials can be filtered by Issuer, credential_def and/or Schema.

Arguments

  • wallet_handle: wallet handle (created by open_wallet).
  • filter_json: filter for credentials { "schema_id": string, (Optional) "schema_issuer_did": string, (Optional) "schema_name": string, (Optional) "schema_version": string, (Optional) "issuer_did": string, (Optional) "cred_def_id": string, (Optional) }

Returns

  • credentials_json - [{ "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 }]