acapy_agent.revocation package

Subpackages

Submodules

acapy_agent.revocation.error module

Revocation error classes.

exception acapy_agent.revocation.error.RevocationError(*args, error_code: str | None = None, **kwargs)[source]

Bases: BaseError

Base exception for revocation-related errors.

exception acapy_agent.revocation.error.RevocationInvalidStateValueError(*args, error_code: str | None = None, **kwargs)[source]

Bases: RevocationError

Invalid Revocation Registry State value.

exception acapy_agent.revocation.error.RevocationNotSupportedError(*args, error_code: str | None = None, **kwargs)[source]

Bases: RevocationError

Attempted to perform revocation-related operation where inapplicable.

exception acapy_agent.revocation.error.RevocationRegistryBadSizeError(*args, error_code: str | None = None, **kwargs)[source]

Bases: RevocationError

Attempted to create registry with maximum credentials too large or too small.

acapy_agent.revocation.indy module

acapy_agent.revocation.manager module

acapy_agent.revocation.recover module

Recover a revocation registry.

acapy_agent.revocation.recover.LOGGER = <Logger acapy_agent.revocation.recover (WARNING)>

This module calculates a new ledger accumulator, based on the revocation status on the ledger vs revocations recorded in the wallet. The calculated transaction can be written to the ledger to get the ledger back in sync with the wallet. This function can be used if there were previous revocation errors (i.e. the credential revocation was successfully written to the wallet but the ledger write failed.)

exception acapy_agent.revocation.recover.RevocRecoveryException[source]

Bases: Exception

Raise exception generating the recovery transaction.

async acapy_agent.revocation.recover.fetch_txns(genesis_txns, registry_id)[source]

Fetch tails file and revocation registry information.

async acapy_agent.revocation.recover.generate_ledger_rrrecovery_txn(genesis_txns, registry_id, set_revoked, cred_def, rev_reg_def_private)[source]

Generate a new ledger accum entry, based on wallet vs ledger revocation state.

acapy_agent.revocation.routes module

acapy_agent.revocation.util module

Revocation utilities.

async acapy_agent.revocation.util.notify_pending_cleared_event(profile: Profile, rev_reg_id: str)[source]

Send notification of credential revoked as issuer.

async acapy_agent.revocation.util.notify_rev_reg_entry_txn_failed(profile: Profile, msg: str)[source]

Send notification that a revocation registry entry transaction failed.

async acapy_agent.revocation.util.notify_revocation_entry_endorsed_event(profile: Profile, rev_reg_id: str, meta_data: dict, revoked: list)[source]

Send notification for a revocation registry entry endorsement event.

async acapy_agent.revocation.util.notify_revocation_entry_event(profile: Profile, issuer_rev_id: str, meta_data: dict)[source]

Send notification for a revocation registry entry event.

async acapy_agent.revocation.util.notify_revocation_published_event(profile: Profile, rev_reg_id: str, crids: Sequence[str])[source]

Send notification of credential revoked as issuer.

async acapy_agent.revocation.util.notify_revocation_reg_endorsed_event(profile: Profile, rev_reg_id: str, meta_data: dict)[source]

Send notification for a revocation registry endorsement event.

async acapy_agent.revocation.util.notify_revocation_reg_init_event(profile: Profile, issuer_rev_id: str, create_pending_rev_reg: bool = False, endorser_connection_id: str | None = None)[source]

Send notification for a revocation registry init event.