Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

The Plugin does not resolve all DIDs that universal-resolver supports #14

Open
martinMustermann opened this issue Dec 7, 2021 · 3 comments

Comments

@martinMustermann
Copy link

I used the following script to create a container:

docker run --entrypoint "/bin/sh" --name aries-uni-resolver -p 8030:8030 -p 8031:8031 -dit bcgovimages/aries-cloudagent:py36-1.16-1_0.7.0

docker exec -it aries-uni-resolver bash

pip install git+https://github.com/sicpa-dlab/acapy-resolver-universal.git

aca-py start --auto-provision --auto-accept-invites --auto-accept-requests --auto-respond-credential-proposal --auto-respond-credential-offer --auto-respond-credential-request --auto-respond-presentation-proposal --auto-respond-presentation-request --auto-respond-messages --auto-store-credential --auto-verify-presentation --auto-ping-connection --monitor-ping --public-invites --plugin "aries_cloudagent.messaging.jsonld" --outbound-transport http --wallet-type "indy" --log-level info --inbound-transport http "0.0.0.0" 8030 --genesis-url "https://idu.cloudcompass.ca/genesis" --endpoint https://cb4b-88-128-88-142.ngrok.io --wallet-name "wallet_db" --wallet-key "key" --admin "0.0.0.0" 8031 --label "aca-py agent" --debug-presentations --admin-insecure-mode --read-only-ledger --plugin universal_resolver

However it cant resolve all DIDs which are provided by the universal resolver project (https://github.com/decentralized-identity/universal-resolver), an example would be 'did:sov:WRfXPg8dantKVubE3HX8pw', which is resolvable here 'https://dev.uniresolver.io/1.0/identifiers/did%3Asov%3AWRfXPg8dantKVubE3HX8pw'.

Then I tried to follow your local setup guideline here 'https://github.com/sicpa-dlab/acapy-resolver-universal/tree/main/demo', which is working for the did mentioned above.

Here I think there is an incompatibility of the base image, the universal did resolver works with 'bcgovimages/von-image:py36-1.16-1' but not 'bcgovimages/aries-cloudagent:py36-1.16-1_0.7.1', do you have any idea about that?

@dbluhm
Copy link
Collaborator

dbluhm commented Dec 7, 2021

Thanks for the report! It is likely that there are some compatibility issues with newer versions of ACA-Py 0.7.x -- I have not personally been able to review updates for ACA-Py in this repo yet. Contributions are welcome 🙂 but I'll also add updates to my todo list.

@martinMustermann
Copy link
Author

Hi @dbluhm , can you please provide me the aca-py version that you were using for testing? I tried
with py36-1.15-0_0.5.6, py36-1.15-1_0.6.0 and py36-1.16-0_0.6.0 as base image but they all have the same problem

@dbluhm
Copy link
Collaborator

dbluhm commented Dec 16, 2021

@martinMustermann after inspecting your configuration a bit closer, I believe the issue here is that a "local" did:sov resolver is loaded when a genesis-url is given on startup so the did:sov:WRfXPg8dantKVubE3HX8pw is getting resolved on the ID Union ledger with this default local resolver instead of through the universal resolver.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants