hyperledger / aries-cloudagent-python

Hyperledger Aries Cloud Agent Python (ACA-Py) is a foundation for building decentralized identity applications and services running in non-mobile environments.
https://wiki.hyperledger.org/display/aries
Apache License 2.0
407 stars 510 forks source link

Refactor revocation recovery to be generic #2370

Closed dbluhm closed 1 month ago

dbluhm commented 1 year ago

Reference: https://github.com/hyperledger/aries-cloudagent-python/blob/anoncreds-rs/aries_cloudagent/revocation/recover.py

These recovery helpers enable catching a ledger up to the state stored in the wallet. This out-of-sync issue can occur under a number of circumstances and has been corrected in the past using these recovery steps through the PUT /revocation/registry/{rev_reg_id}/fix-revocation-entry-state endpoint.

Currently, these recovery helpers are implemented in an Indy Specific manner, using the Indy VDR library directly. This should be made more generic by using the new AnonCreds interface to accomplish the same goals.

dbluhm commented 1 year ago

See also: https://github.com/hyperledger/aries-cloudagent-python/blob/anoncreds-rs/aries_cloudagent/anoncreds/default/legacy_indy/registry.py#L664-L739