sicpa-dlab / acapy-resolver-universal

(Archived) ACA-Py Plugin for HTTP Universal Resolver bindings
3 stars 2 forks source link

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

Open martinMustermann opened 2 years ago

martinMustermann commented 2 years ago

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 commented 2 years ago

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 :slightly_smiling_face: but I'll also add updates to my todo list.

martinMustermann commented 2 years ago

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 commented 2 years ago

@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.