Function indy::api::anoncreds::indy_prover_get_claims_for_proof_req
[−]
[src]
#[no_mangle]pub extern "C" fn indy_prover_get_claims_for_proof_req(
command_handle: i32,
wallet_handle: i32,
proof_request_json: *const c_char,
cb: Option<extern "C" fn(_: i32, _: ErrorCode, _: *const c_char)>
) -> ErrorCode
Gets human readable claims matching the given proof request.
Params
wallet_handle: wallet handler (created by open_wallet).
proof_request_json: proof request json
{
"name": string,
"version": string,
"nonce": string,
"requested_attr1_uuid":
Returns
json with claims for the given pool request.
Claim consists of uuid, human-readable attributes (key-value map), schema_seq_no, issuer_did and revoc_reg_seq_no.
{
"requested_attr1_uuid": [claim1, claim2],
"requested_attr2_uuid": [],
"requested_attr3_uuid": [claim3],
"requested_predicate_1_uuid": [claim1, claim3],
"requested_predicate_2_uuid": [claim2],
}, where claim is
{
"claim_uuid":
Errors
Annoncreds* Common* Wallet*