aries_cloudagent.revocation package

Subpackages

Submodules

aries_cloudagent.revocation.error module

Revocation error classes.

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

Bases: BaseError

Base exception for revocation-related errors.

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

Bases: RevocationError

Invalid Revocation Registry State value.

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

Bases: RevocationError

Attempted to perform revocation-related operation where inapplicable.

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

Bases: RevocationError

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

aries_cloudagent.revocation.indy module

aries_cloudagent.revocation.manager module

aries_cloudagent.revocation.recover module

Recover a revocation registry.

aries_cloudagent.revocation.recover.LOGGER = <Logger aries_cloudagent.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 aries_cloudagent.revocation.recover.RevocRecoveryException[source]

Bases: Exception

Raise exception generating the recovery transaction.

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

Fetch tails file and revocation registry information.

async aries_cloudagent.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.

aries_cloudagent.revocation.routes module

aries_cloudagent.revocation.util module

Revocation utilities.

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

Send notification of credential revoked as issuer.

async aries_cloudagent.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 aries_cloudagent.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 aries_cloudagent.revocation.util.notify_revocation_published_event(profile: Profile, rev_reg_id: str, crids: Sequence[str])[source]

Send notification of credential revoked as issuer.

async aries_cloudagent.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 aries_cloudagent.revocation.util.notify_revocation_reg_init_event(profile: Profile, issuer_rev_id: str, create_pending_rev_reg: bool = False, endorser_connection_id: Optional[str] = None)[source]

Send notification for a revocation registry init event.