Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add did:example driver. #100

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:1.0.0
environment:
uniresolver_driver_did_example_exampleSetting: ${uniresolver_driver_did_example_exampleSetting}
ports:
- "8120:8080"