Skip to content

Commit

Permalink
add quarkid to the universal resolver (#452)
Browse files Browse the repository at this point in the history
* add quarkid driver

* add curl/docs  readme

* change image , correct config application.yml

* latest

---------

Co-authored-by: [email protected] <[email protected]>
  • Loading branch information
toescudero and [email protected] authored Nov 14, 2024
1 parent eff25d2 commit a339f81
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,8 @@ uniresolver_driver_did_iota_smrNodeAuthToken=
uniresolver_driver_did_iota_customNetworkName=rms
uniresolver_driver_did_iota_customNodeEndpoint=https://api.testnet.shimmer.network/
uniresolver_driver_did_iota_customNodeAuthToken=

uniresolver_driver_did_quarkid_node_url=https://lbquarkid2.extrimian.com/
uniresolver_driver_did_quarkid_node_pattern=did:quarkid
uniresolver_driver_did_quarkid_node_behavior=1
uniresolver_driver_did_quarkid_node_threadpool_size=240000
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ You should then be able to resolve identifiers locally using simple `curl` reque
curl -X GET http://localhost:8080/1.0/identifiers/did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw
curl -X GET http://localhost:8080/1.0/identifiers/did:prism:c36cd59bbc62dee1925e1343a8fed051416e417116d6169d060746f1e6816cd4
curl -X GET http://localhost:8080/1.0/identifiers/did:tdw:QmbnQXj7DhWFrmgjDPKZCybn8fkKW7Wze57SQHpwsSQ7NZ:gist.githubusercontent.com:brianorwhatever:9c4633d18eb644f7a47f93a802691626:raw

curl -X GET http://localhost:8080/1.0/identifiers/did:quarkid:EiBJ_1z9_OtvrfSgUNnBIs808vsRq7dQCKMP4LuSUosdXQ
You can also use an "Accept" header to request the DID document in a specific representation, e.g.:

curl -H "Accept: application/did+ld+json" https://dev.uniresolver.io/1.0/identifiers/did:sov:WRfXPg8dantKVubE3HX8pw
Expand Down Expand Up @@ -183,7 +183,7 @@ Are you developing a DID method and Universal Resolver driver? Click [Driver Dev
| [did-iden3](https://github.com/iden3/driver-did-iden3) | 0.0.4 | [1.0.0](https://github.com/iden3/did-iden3/blob/main/did-iden3-method.md) | [ghcr.io/iden3/driver-did-iden3:v0.0.4](https://github.com/iden3/driver-did-iden3/pkgs/container/driver-did-iden3) | Iden3 DID |
| [did-prism](https://github.com/FabioPinheiro/uni-resolver-driver-did-prism) | 0.2 | [1.0](https://github.com/input-output-hk/prism-did-method-spec) | [ghcr.io/fabiopinheiro/uni-resolver-driver-did-prism](https://github.com/FabioPinheiro/uni-resolver-driver-did-prism/pkgs/container/uni-resolver-driver-did-prism) | PRISM DID |
| [did-tdw](https://github.com/brianorwhatever/uni-resolver-driver-did-tdw) | 0.4 | [0.4](https://identity.foundation/trustdidweb/) | [uni-resolver-driver-did-tdw](https://hub.docker.com/r/brianrichter/uni-resolver-driver-did-tdw) | Trust DID Web |

| [did-quarkid](https://github.com/ssi-quarkid/api-proxy) | 1.0 | 1.0 | [uni-resolver-driver-did-quarkid](extrimianpublic.azurecr.io/modena-resolver:metadataSupport) | QuarkID

## More Information

Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -383,3 +383,13 @@ services:
image: brianrichter/uni-resolver-driver-did-tdw:0.4
ports:
- "8154:8080"
driver-did-quarkid:
image: quarkid/api-proxy:latest
ports:
- 8155:8080
environment:
#- NODE_1_URL:https://quarkid-main.extrimian.com/
NODE_1_URL: ${uniresolver_driver_did_quarkid_node_url} #https://lbquarkid2.extrimian.com/
NODE_1_PATTERN: ${uniresolver_driver_did_quarkid_node_pattern} #did:quarkid
NODE_1_BEHAVIOR: ${uniresolver_driver_did_quarkid_node_behavior} #1
UV_THREADPOOL_SIZE: ${uniresolver_driver_did_quarkid_node_threadpool_size} #240000
4 changes: 4 additions & 0 deletions uni-resolver-web/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,3 +346,7 @@ uniresolver:
testIdentifiers:
- did:tdw:QmbkyrrjFQ3Z2WiDfmesKpmeUhemaiqkWgwemovmVaTJfQ:demo.identifier.me:client:c9dd16b7-e079-43da-b0a9-36515e726c6f
- did:tdw:QmbnQXj7DhWFrmgjDPKZCybn8fkKW7Wze57SQHpwsSQ7NZ:gist.githubusercontent.com:brianorwhatever:9c4633d18eb644f7a47f93a802691626:raw
- pattern: "^(did:quarkid:.+)$"
url: ${uniresolver_web_driver_url_did_quarkid:http://driver-did-quarkid:8080/}
testIdentifiers:
- did:quarkid:EiA9SoiWkqduxPJcVk3UVoUGWm3WL2S6mox3qH3AWVCwMQ

0 comments on commit a339f81

Please sign in to comment.