Function libindy_sys::indy_prover_store_credential [−][src]
pub unsafe extern "C" fn indy_prover_store_credential(
command_handle: indy_handle_t,
wallet_handle: indy_handle_t,
cred_id: *const c_char,
cred_req_metadata_json: *const c_char,
cred_json: *const c_char,
cred_def_json: *const c_char,
rev_reg_def_json: *const c_char,
cb: indy_str_cb
) -> indy_error_t
Check credential provided by Issuer for the given credential request, updates the credential by a master secret and stores in a secure wallet.
To support efficient and flexible search the following tags will be created for stored credential:
{
"schema_id":
#Params command_handle: command handle to map callback to user context. wallet_handle: wallet handler (created by open_wallet). cred_id: (optional, default is a random one) identifier by which credential will be stored in the wallet cred_req_metadata_json: a credential request metadata created by indy_prover_create_credential_req cred_json: credential json received from issuer cred_def_json: credential definition json related to <cred_def_id> in <cred_json> rev_reg_def_json: revocation registry definition json related to <rev_reg_def_id> in <cred_json> cb: Callback that takes command result as parameter.
#Returns out_cred_id: identifier by which credential is stored in the wallet
#Errors Annoncreds* Common* Wallet*