Skip to content

Commit

Permalink
chore: Add trustbloc driver
Browse files Browse the repository at this point in the history
closes decentralized-identity#6

Signed-off-by: Firas Qutishat <firas.qutishat@securekey.com>
  • Loading branch information
fqutishat committed May 17, 2020
1 parent 332c42d commit d1212e0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ uniregistrar_driver_did_sov_walletName=default
uniregistrar_driver_did_sov_trustAnchorSeed=

uniregistrar_driver_did_v1_trustAnchorSeed=


DID_METHOD_HOST_URL=0.0.0.0:9080
DID_METHOD_TLS_SYSTEMCERTPOOL=true
DID_METHOD_MODE=registrar
DID_METHOD_DOMAIN=testnet.trustbloc.dev
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ You should then be able to create/update/deactivate identifiers locally using si
curl -X POST 'http://localhost:9080/1.0/register?driverId=driver-universalregistrar%2Fdriver-did-sov' -d '{"options":{"network":"danube"}}'
curl -X POST 'http://localhost:9080/1.0/register?driverId=driver-universalregistrar%2Fdriver-did-btcr' -d '{"options":{"chain":"TESTNET"}}'
curl -X POST 'http://localhost:9080/1.0/register?driverId=driver-universalregistrar%2Fdriver-did-key' -d '{"options":{"keyType": "Ed25519VerificationKey2018"}}'
curl -X POST 'http://localhost:9080/1.0/register?driverId=driver-trustbloc%2Fdriver-did-trustbloc' -d '{"jobId":"a86b18ce-10ba-4376-a60c-debb80679bce","didDocument":{"publicKey":[{"id":"key-1","type":"Ed25519VerificationKey2018","value":"j3HnPYQI52S0Col6u3JbA/jWAmvfK3bCqC1eDwaQUqU=","usage":["general","assertion","auth"],"encoding":"Jwk","keyType":"Ed25519"},{"id":"key-2","type":"Ed25519VerificationKey2018","value":"j3HnPYQI52S0Col6u3JbA/jWAmvfK3bCqC1eDwaQUqU=","encoding":"Jwk","recovery":true,"keyType":"Ed25519"}],"service":[{"id":"service","type":"type","serviceEndpoint":"http://www.example.com/"}]}}'

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

Expand All @@ -34,6 +35,7 @@ Are you developing a DID method and Universal Registrar driver? Click [Driver De
| [did-sov](https://github.com/decentralized-identity/uni-registrar-driver-did-sov/) | 0.1-SNAPSHOT | [1.0 WD](https://w3c.github.io/did-core/) | [0.1](https://sovrin-foundation.github.io/sovrin/spec/did-method-spec-template.html) | [universalregistrar/driver-did-sov](https://hub.docker.com/r/universalregistrar/driver-did-sov/)
| [did-v1](https://github.com/decentralized-identity/uni-registrar-driver-did-v1/) | 0.1-SNAPSHOT | [1.0 WD](https://w3c.github.io/did-core/) | [0.1](https://w3c-ccg.github.io/did-method-v1/) | [universalregistrar/driver-did-v1](https://hub.docker.com/r/universalregistrar/driver-did-v1/)
| [did-key](https://github.com/decentralized-identity/uni-registrar-driver-did-key/) | 1.0.0 | [1.0 WD](https://w3c.github.io/did-core/) | [0.7](https://w3c-ccg.github.io/did-method-key/) | [universalregistrar/driver-did-key](https://hub.docker.com/r/universalregistrar/driver-did-key/)
| [did-trustbloc](https://github.com/trustbloc/trustbloc-did-method) | 0.1.3 | [1.0 WD](https://w3c.github.io/did-core/) | [0.1](https://github.com/trustbloc/trustbloc-did-method/blob/v0.1.3/docs/spec/trustbloc-did-method.md) | [trustbloc/driver-did-trustbloc](https://hub.docker.com/r/trustbloc/driver-did-trustbloc)

## More Information

Expand Down
3 changes: 3 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
}, {
"image": "universalregistrar/driver-did-key",
"tag": "latest"
}, {
"image": "trustbloc/driver-did-trustbloc",
"tag": "0.1.3"
}
]
}
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ services:
image: universalregistrar/driver-did-key:latest
ports:
- "9084:9080"
driver-did-trustbloc:
image: trustbloc/driver-did-trustbloc:0.1.3
environment:
DID_METHOD_HOST_URL: ${DID_METHOD_HOST_URL}
DID_METHOD_TLS_SYSTEMCERTPOOL: ${DID_METHOD_TLS_SYSTEMCERTPOOL}
DID_METHOD_MODE: ${DID_METHOD_MODE}
DID_METHOD_DOMAIN: ${DID_METHOD_DOMAIN}
ports:
- "9085:9080"
command: start
uni-registrar-web:
image: universalregistrar/uni-registrar-web:latest
ports:
Expand Down

0 comments on commit d1212e0

Please sign in to comment.