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
402 stars 503 forks source link

Create new registry in AnonCredsRevocation.get_or_create_active_registry if necessary #2378

Open dbluhm opened 11 months ago

dbluhm commented 11 months ago

See: https://github.com/hyperledger/aries-cloudagent-python/blob/anoncreds-rs/aries_cloudagent/anoncreds/revocation.py#L670-L672

This method should trigger the creation of a new registry if one is not available.

Reference: https://github.com/hyperledger/aries-cloudagent-python/blob/2b0e27abb598cadc6453202aec593512c29abf3f/aries_cloudagent/revocation/indy.py#L224-L251

As an aside, I'm not sure this will ever actually trigger the creation of a new registry when using automated setup. The registry creation should be triggered by the handle_full_registry method.

swcurran commented 11 months ago

If this is part of the controller-handled revocation, this can be left off, as that will not be supported.