Function libindy_sys::indy_issuer_revoke_credential[][src]

pub unsafe extern "C" fn indy_issuer_revoke_credential(
    command_handle: indy_handle_t,
    wallet_handle: indy_handle_t,
    blob_storage_reader_handle: indy_i32_t,
    rev_reg_id: *const c_char,
    cred_revoc_id: *const c_char,
    cb: indy_str_cb
) -> indy_error_t

Revoke a credential identified by a cred_revoc_id (returned by indy_issuer_create_credential).

The corresponding credential definition and revocation registry must be already created an stored into the wallet.

This call returns revoc registry delta as json file intended to be shared as REVOC_REG_ENTRY transaction. Note that it is possible to accumulate deltas to reduce ledger load.

#Params command_handle: command handle to map callback to user context. wallet_handle: wallet handler (created by open_wallet). blob_storage_reader_cfg_handle: configuration of blob storage reader handle that will allow to read revocation tails rev_reg_id: id of revocation registry stored in wallet cred_revoc_id: local id for revocation info cb: Callback that takes command result as parameter.

#Returns revoc_reg_delta_json: Revocation registry delta json with a revoked credential

#Errors Annoncreds* Common* Wallet*