Function indy::api::anoncreds::indy_issuer_create_and_store_claim_def [] [src]

#[no_mangle]
pub extern "C" fn indy_issuer_create_and_store_claim_def(
    command_handle: i32,
    wallet_handle: i32,
    issuer_did: *const c_char,
    schema_json: *const c_char,
    signature_type: *const c_char,
    create_non_revoc: bool,
    cb: Option<extern "C" fn(_: i32, _: ErrorCode, _: *const c_char)>
) -> ErrorCode

Create keys (both primary and revocation) for the given schema and signature type (currently only CL signature type is supported). Store the keys together with signature type and schema in a secure wallet as a claim definition. The claim definition in the wallet is identifying by a returned unique key.

Params

wallet_handle: wallet handler (created by open_wallet). command_handle: command handle to map callback to user context. issuer_did: a DID of the issuer signing claim_def transaction to the Ledger schema_json: schema as a json signature_type: signature type (optional). Currently only 'CL' is supported. create_non_revoc: whether to request non-revocation claim. cb: Callback that takes command result as parameter.

Returns

claim definition json containing information about signature type, schema and issuer's public key. Unique number identifying the public key in the wallet

Errors

Common* Wallet* Anoncreds*