[−][src]Function indyrs::anoncreds::prover_get_credential
pub fn prover_get_credential(
wallet_handle: WalletHandle,
cred_id: &str
) -> Box<dyn Future<Item = String, Error = IndyError>>
Gets human readable credential by the given id.
Arguments
wallet_handle
: wallet handle (created by Wallet::open_wallet).cred_id
: Identifier by which requested credential is stored in the wallet
Returns
credential_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 }