Skip to content

Commit b0834ce

Browse files
authored
add iden3 driver (decentralized-identity#467)
* add iden3 driver * use supportsDereference for did:iden3 DIDs
1 parent 77c8a3d commit b0834ce

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ You should then be able to resolve identifiers locally using simple `curl` reque
9292
curl -X GET http://localhost:8080/1.0/identifiers/did:prism:c36cd59bbc62dee1925e1343a8fed051416e417116d6169d060746f1e6816cd4
9393
curl -X GET http://localhost:8080/1.0/identifiers/did:webvh:QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p:gist.githubusercontent.com:brianorwhatever:9c4633d18eb644f7a47f93a802691626:raw
9494
curl -X GET http://localhost:8080/1.0/identifiers/did:quarkid:EiBJ_1z9_OtvrfSgUNnBIs808vsRq7dQCKMP4LuSUosdXQ
95+
curl -X GET http://localhost:8080/1.0/identifiers/did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw
96+
curl -X GET 'http://localhost:8080/1.0/identifiers/did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw?gist=f12d4f6fddeed78cb8b1faf1c6f4f171a590c1b05c484118a09847f5caa74d03'
97+
curl -X GET 'http://localhost:8080/1.0/identifiers/did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw?state=7a1a45d22b686cf1bd2f9fbecbed38b725a555e6d8ad68d3780feda9124b1a13'
9598
You can also use an "Accept" header to request the DID document in a specific representation, e.g.:
9699

97100
curl -H "Accept: application/did+ld+json" https://dev.uniresolver.io/1.0/identifiers/did:sov:WRfXPg8dantKVubE3HX8pw
@@ -180,6 +183,7 @@ Are you developing a DID method and Universal Resolver driver? Click [Driver Dev
180183
| [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 |
181184
| [did-webvh](https://github.com/brianorwhatever/uni-resolver-driver-did-webvh) | 0.5 | [0.5](https://identity.foundation/didwebvh/) | [uni-resolver-driver-did-webvh](ghcr.io/brianorwhatever/uni-resolver-driver-did-webvh:main) | DID WEBVH - Verifiable History |
182185
| [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
186+
| [did-iden3](https://github.com/iden3/driver-did-iden3) | 0.0.8 | [1.0.0](https://github.com/iden3/did-iden3/blob/main/did-iden3-method.md) | [ghcr.io/iden3/driver-did-iden3:v0.0.8](https://github.com/iden3/driver-did-iden3/pkgs/container/driver-did-iden3) | Iden3 DID
183187

184188
## More Information
185189

docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ services:
7575
uniresolver_web_driver_url_did_webs:
7676
uniresolver_web_driver_url_did_content:
7777
uniresolver_web_driver_url_did_prism:
78+
uniresolver_web_driver_url_did_iden3:
7879

7980
driver-did-btcr:
8081
image: universalresolver/driver-did-btcr:latest
@@ -365,6 +366,10 @@ services:
365366
IOTA_CUSTOM_NETWORK_NAME: ${uniresolver_driver_did_iota_customNetworkName}
366367
IOTA_CUSTOM_NODE_ENDPOINT: ${uniresolver_driver_did_iota_customNodeEndpoint}
367368
IOTA_CUSTOM_NODE_AUTH_TOKEN: ${uniresolver_driver_did_iota_customNodeAuthToken}
369+
driver-did-iden3:
370+
image: ghcr.io/iden3/driver-did-iden3:v0.0.8
371+
ports:
372+
- "8152:8080"
368373
driver-did-prism:
369374
image: ghcr.io/fabiopinheiro/uni-resolver-driver-did-prism:0.2
370375
ports:

uni-resolver-web/src/main/resources/application.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,3 +357,9 @@ uniresolver:
357357
url: ${uniresolver_web_driver_url_did_quarkid:http://driver-did-quarkid:8080/}
358358
testIdentifiers:
359359
- did:quarkid:EiA9SoiWkqduxPJcVk3UVoUGWm3WL2S6mox3qH3AWVCwMQ
360+
- pattern: "^(did:iden3:.+)$"
361+
url: ${uniresolver_web_driver_url_did_iden3:http://driver-did-iden3:8080/}
362+
propertiesEndpoint: "true"
363+
supportsDereference: true
364+
testIdentifiers:
365+
- did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw

0 commit comments

Comments
 (0)