Function indyrs::anoncreds::issuer_create_credential_offer
source · [−]pub fn issuer_create_credential_offer(
wallet_handle: WalletHandle,
cred_def_id: &str
) -> Box<dyn Future<Item = String, Error = IndyError>>
Expand description
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.
Arguments
wallet_handle
: wallet handle (created by Wallet::open_wallet)cred_def_id
: id of credential definition stored in the wallet
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 for credential definition correspondent to cred_def_id (opaque type that contains data structures internal to Ursa. It should not be parsed and are likely to change in future versions). }