Function libindy_sys::indy_prover_create_credential_req[][src]

pub unsafe extern "C" fn indy_prover_create_credential_req(
    command_handle: indy_handle_t,
    wallet_handle: indy_handle_t,
    prover_did: *const c_char,
    cred_offer_json: *const c_char,
    cred_def_json: *const c_char,
    master_secret_id: *const c_char,
    cb: indy_str_str_cb
) -> indy_error_t

Creates a credential request for the given credential offer.

The method creates a blinded master secret for a master secret identified by a provided name. The master secret identified by the name must be already stored in the secure wallet (see prover_create_master_secret) The blinded master secret is a part of the credential request.

#Params command_handle: command handle to map callback to user context wallet_handle: wallet handler (created by open_wallet) prover_did: a DID of the prover cred_offer_json: credential offer as a json containing information about the issuer and a credential cred_def_json: credential definition json related to <cred_def_id> in <cred_offer_json> master_secret_id: the id of the master secret stored in the wallet cb: Callback that takes command result as parameter.

#Returns cred_req_json: Credential request json for creation of credential by Issuer { "prover_did" : string, "cred_def_id" : string, // Fields below can depend on Cred Def type "blinded_ms" : <blinded_master_secret>, "blinded_ms_correctness_proof" : <blinded_ms_correctness_proof>, "nonce": string } cred_req_metadata_json: Credential request metadata json for further processing of received form Issuer credential.

#Errors Annoncreds* Common* Wallet*