Function libindy_sys::indy_prover_get_credentials [−][src]
pub unsafe extern "C" fn indy_prover_get_credentials(
command_handle: indy_handle_t,
wallet_handle: indy_handle_t,
filter_json: *const c_char,
cb: indy_str_cb
) -> indy_error_t
Gets human readable credential by the given id.
#Params wallet_handle: wallet handler (created by open_wallet). cred_id: Identifier by which requested credential is stored in the wallet cb: Callback that takes command result as parameter.
#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
#Errors Annoncreds* Common* Wallet*