Function libindy_sys::indy_issuer_create_credential_offer[][src]

pub unsafe extern "C" fn indy_issuer_create_credential_offer(
    command_handle: indy_handle_t,
    wallet_handle: indy_handle_t,
    cred_def_id: *const c_char,
    cb: indy_str_cb
) -> indy_error_t

Create credential offer that will be used by Prover for credential request creation. Offer includes nonce and key correctness proof for authentication between protocol steps and integrity checking.

#Params command_handle: command handle to map callback to user context wallet_handle: wallet handler (created by open_wallet) cred_def_id: id of credential definition stored in the wallet cb: Callback that takes command result as parameter

#Returns credential offer json: { "schema_id": string, "cred_def_id": string, // Fields below can depend on Cred Def type "nonce": string, "key_correctness_proof" : <key_correctness_proof> }

#Errors Common* Wallet* Anoncreds*