[][src]Function indyrs::anoncreds::issuer_revoke_credential

pub fn issuer_revoke_credential(
    wallet_handle: WalletHandle,
    blob_storage_reader_cfg_handle: BlobStorageReaderCfgHandle,
    rev_reg_id: &str,
    cred_revoc_id: &str
) -> Box<dyn Future<Item = String, Error = IndyError>>

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.

Arguments

  • wallet_handle: wallet handle (created by Wallet::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

Returns

  • revoc_reg_delta_json: Revocation registry delta json with a revoked credential