Skip to content

Commit

Permalink
Add did:example driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Apr 8, 2021
1 parent a3c162a commit 7261d4b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ uniresolver_driver_did_icon_network_id=2

LEDGIS_LIT_ENDPOINT=https://lit.ledgis.io
LEDGIS_LIT_CODE=lit

uniresolver_driver_did_example_exampleSetting=exampleSetting
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ You should then be able to resolve identifiers locally using simple `curl` reque
curl -X GET http://localhost:8080/1.0/identifiers/did:bitxhub:appchain001:0xc7F999b83Af6DF9e67d0a37Ee7e900bF38b3D013
curl -X GET http://localhost:8080/1.0/identifiers/did:solid:DSb8Guj9tB1jvsyqrsE3Yi44hwnzrVVQc2gcS1J1dUxy
curl -X GET http://localhost:8080/1.0/identifiers/did:lit:AEZ87t1bi5bRxmVh3ksMUi
curl -X GET http://localhost:8080/1.0/identifiers/did:example:0000000000123456

If this doesn't work, see [Troubleshooting](/docs/troubleshooting.md).

Expand Down
7 changes: 6 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@
"pattern": "^(did:lit:(?:[1-9A-HJ-NP-Za-km-z]{21,22}))$",
"url": "http://driver-did-lit:8080/",
"testIdentifiers": [ "did:lit:AEZ87t1bi5bRxmVh3ksMUi" ]
}
},
{
"pattern": "^(did:example:.+)$",
"url": "http://uni-resolver-driver-did-example:8080/",
"testIdentifiers": [ "did:example:0000000000123456", "did:example:0000000000456789" ]
}
]
}
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,10 @@ services:
LEDGIS_LIT_CODE: ${LEDGIS_LIT_CODE}
ports:
- "8119:8080"
uni-resolver-driver-did-example:
image: exampleorg/uni-resolver-driver-did-example:latest
environment:
uniresolver_driver_did_example_exampleSetting: ${uniresolver_driver_did_example_exampleSetting}
ports:
- "8120:8080"

0 comments on commit 7261d4b

Please sign in to comment.