# Implementing a New AnonCreds Registry in ACA-PY
The short form:
- Implement `BaseAnonCredsResolver`
- Implement `BaseAnonCredsRegistrar`
- Found [Here](https://github.com/hyperledger/aries-cloudagent-python/blob/main/aries_cloudagent/anoncreds/base.py#L96-L190)
Models for the API are defined [here](https://github.com/hyperledger/aries-cloudagent-python/tree/main/aries_cloudagent/anoncreds/models)
Events (for automatic revocation list registration):
- When the object is finalized, call `finish_*` on [`AnonCredsIssuer`](https://github.com/hyperledger/aries-cloudagent-python/blob/main/aries_cloudagent/anoncreds/issuer.py#L56)
- e.g. `AnonCredsIssuer.finish_schema`, `AnonCredsIssuer.finish_cred_def`, etc.
- Calling `finish_*` will trigger the next step in the revocation artifact setup
- Automatic setup occurs [here](https://github.com/hyperledger/aries-cloudagent-python/blob/main/aries_cloudagent/anoncreds/revocation_setup.py)
As a plugin:
https://github.com/hyperledger/aries-cloudagent-python/blob/main/aries_cloudagent/anoncreds/__init__.py
Example:
https://github.com/hyperledger/aries-cloudagent-python/blob/main/aries_cloudagent/anoncreds/default/legacy_indy/registry.py