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 23, 2020
1 parent 8afdcba commit cc591b1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ uniresolver_driver_dns_dnsServers=
uniresolver_driver_did_echo_mainnet_rpc_url=http://127.0.0.1:8090/rpc
uniresolver_driver_did_echo_testnet_rpc_url=http://testnet.echo-dev.io
uniresolver_driver_did_echo_devnet_rpc_url=http://127.0.0.1:8090/rpc

uniresolver_driver_did_example_exampleSetting=exampleSetting
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ You should then be able to resolve identifiers locally using simple `curl` reque
curl -X GET http://localhost:8080/1.0/identifiers/did:kilt:5GFs8gCumJcZDDWof5ETFqDFEsNwCsVJUj2bX7y4xBLxN5qT
curl -X GET http://localhost:8080/1.0/identifiers/did:evan:testcore:0x126E901F6F408f5E260d95c62E7c73D9B60fd734
curl -X GET http://localhost:8080/1.0/identifiers/did:echo:1.1.25.0
curl -X GET http://localhost:8080/1.0/identifiers/did:example:0000000000123456

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

Expand Down Expand Up @@ -72,6 +73,7 @@ Are you developing a DID method and Universal Resolver driver? Click [Driver Dev
| [did-kilt](https://github.com/KILTprotocol/kilt-did-driver) | 1.0.1 | [1.0 WD](https://w3c.github.io/did-core/) | [1.0](https://github.com/KILTprotocol/kilt-did-driver/blob/master/DID%20Method%20Specification.md) | [kiltprotocol/kilt-did-driver](https://hub.docker.com/r/kiltprotocol/kilt-did-driver)|
| [did-evan](https://github.com/evannetwork/did-driver) | 0.1 | [1.0 WD](https://w3c.github.io/did-core/) | [0.9](https://github.com/evannetwork/evan.network-DID-method-specification/blob/master/evan_did_method_spec.md) | [evannetwork/evan-did-driver](https://hub.docker.com/r/evannetwork/evan-did-driver) |
| [did-echo](https://github.com/echoprotocol/uni-resolver-driver-did-echo) | 0.0.1 | [1.0 WD](https://w3c.github.io/did-core/) | [1.0](https://github.com/echoprotocol/uni-resolver-driver-did-echo/blob/master/echo_did_specifications.md) | [echoprotocol/uni-resolver-driver-did-echo](https://hub.docker.com/r/echoprotocol/uni-resolver-driver-did-echo) |
| [did-example](https://github.com/peacekeeper/uni-resolver-driver-did-example) | 0.0.1 | [1.0 WD](https://w3c.github.io/did-core/) | [1.0](https://github.com/peacekeeper/uni-resolver-driver-did-example/blob/master/did_method_specification.md) | [exampleorg/uni-resolver-driver-did-example](https://hub.docker.com/r/exampleorg/uni-resolver-driver-did-example) |

## More Information

Expand Down
5 changes: 5 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@
"image": "echoprotocol/uni-resolver-driver-did-echo",
"tag": "latest",
"testIdentifiers": [ "did:echo:1.1.25.0" ]
}, {
"pattern": "^(did:example:.+)$",
"image": "exampleorg/uni-resolver-driver-did-example",
"tag": "latest",
"testIdentifiers": [ "did:example:0000000000123456", "did:example:0000000000456789" ]
}
]
}
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ services:
uniresolver_driver_did_echo_devnet_rpc_url: ${uniresolver_driver_did_echo_devnet_rpc_url}
ports:
- "8096: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:
- "8097:8080"
uni-resolver-web:
image: universalresolver/uni-resolver-web:latest
ports:
Expand Down

0 comments on commit cc591b1

Please sign in to comment.