Skip to content

Commit

Permalink
Add driver-did-iota (#425)
Browse files Browse the repository at this point in the history
* did:iota driver implementation

* update driver version

* fix invalid node endpoint

* chore: add env variables to custom script for driver-did-iota

* fix: use correct env variables for driver-did-iota

---------

Co-authored-by: Enrico Marconi <enrico.marconi@hotmail.it>
  • Loading branch information
BernhardFuchs and UMR1352 authored May 22, 2024
1 parent 8e5e34c commit 0ffbe28
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,8 @@ uniresolver_driver_did_ev_address_im=0x4E4f55190185f2694D331E5c9Fd70a2B75Eb4Bd2
uniresolver_driver_did_ev_base_blocks=2700000

uniresolver_driver_did_itn_resolverUrl=https://resolver.itn.mobi

uniresolver_driver_did_iota_iotaNodeEndpoint=https://api.stardust-mainnet.iotaledger.net/
uniresolver_driver_did_iota_smrNodeEndpoint=https://api.shimmer.network/
uniresolver_driver_did_iota_customNetworkName=rms
uniresolver_driver_did_iota_customNodeEndpoint=https://api.testnet.shimmer.network/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ You should then be able to resolve identifiers locally using simple `curl` reque
curl -X GET http://localhost:8080/1.0/identifiers/did:content:3SqTXtoMpiPeNo5vEP2p7yNGQUeCGjqW1wnctv8yaCWXojD29GYcUEo
curl -X GET http://localhost:8080/1.0/identifiers/did:algo:mainnet:app:1845671812:da490f2d15a625459bf970a3d55e1a646dfd3a956d011546e953e945d39fdada
curl -X GET http://localhost:8080/1.0/identifiers/did:itn:PA7xLNkMAqzzrDp4UBnrZm
curl -X GET http://localhost:8080/1.0/identifiers/did:iota:0xf4d6f08f5a1b80dd578da7dc1b49c886d580acd4cf7d48119dfeb82b538ad88a

You can also use an "Accept" header to request the DID document in a specific representation, e.g.:

Expand Down Expand Up @@ -176,6 +177,7 @@ Are you developing a DID method and Universal Resolver driver? Click [Driver Dev
| [did-content](https://github.com/KataruInc/did-content-spec) | 0.1 | [0.1](https://github.com/KataruInc/did-content-spec) | [kataru/content-did-driver](https://hub.docker.com/repository/docker/kataru/content-did-driver) | Content DID |
| [did-algo](https://github.com/algorandfoundation/did-algo) | 1.0.0 | [2.0](https://github.com/algorandfoundation/did-algo/blob/main/SPEC.md) | [ghcr.io/algorandfoundation/did-algo](https://ghcr.io/algorandfoundation/did-algo) | Algorand Blockchain DID Method |
| [did-itn](https://github.com/itn-trust/uni-resolver-driver-did-itn) | 1.0.0 | [1.0](https://github.com/itn-trust/itn-did-spec) | [ghcr.io/itn-trust/driver-did-itn](https://ghcr.io/itn-trust/driver-did-itn) | Integrated Trust Network (ITN) DID Method |
| [did-iota](https://github.com/iotaledger/uni-resolver-driver-iota) | 0.1.1 | 1.0 | [iotaledger/uni-resolver-driver-iota](https://hub.docker.com/r/iotaledger/uni-resolver-driver-iota) | IOTA DID |


## More Information
Expand Down
10 changes: 10 additions & 0 deletions ci/deploy-k8s-aws/scripts/driver-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,13 @@ driver-did-itn:
env:
- name: DID_RESOLVER_URL
value: "https://resolver.itn.mobi"
driver-did-iota:
env:
- name: IOTA_NODE_ENDPOINT
value: "https://api.stardust-mainnet.iotaledger.net/"
- name: IOTA_SMR_NODE_ENDPOINT
value: "https://api.shimmer.network/"
- name: IOTA_CUSTOM_NETWORK_NAME
value: "rms"
- name: IOTA_CUSTOM_NODE_ENDPOINT
value: "https://api.testnet.shimmer.network/"
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -357,3 +357,12 @@ services:
- "8150:8080"
environment:
DID_RESOLVER_URL: ${uniresolver_driver_did_itn_resolverUrl}
driver-did-iota:
image: iotaledger/uni-resolver-driver-iota:0.1.1
ports:
- "8151:8080"
environment:
IOTA_NODE_ENDPOINT: ${uniresolver_driver_did_iota_iotaNodeEndpoint}
IOTA_SMR_NODE_ENDPOINT: ${uniresolver_driver_did_iota_smrNodeEndpoint}
IOTA_CUSTOM_NETWORK_NAME: ${uniresolver_driver_did_iota_customNetworkName}
IOTA_CUSTOM_NODE_ENDPOINT: ${uniresolver_driver_did_iota_customNodeEndpoint}
4 changes: 4 additions & 0 deletions uni-resolver-web/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -329,3 +329,7 @@ uniresolver:
testIdentifiers:
- did:itn:PA7xLNkMAqzzrDp4UBnrZm
- did:itn:EzfteTXcoHXh5W1PURHrS3
- pattern: "^(did:iota:.+)$"
url: ${uniresolver_web_driver_url_did_iota:http://driver-did-iota:8080/}
testIdentifiers:
- did:iota:0xf4d6f08f5a1b80dd578da7dc1b49c886d580acd4cf7d48119dfeb82b538ad88a

0 comments on commit 0ffbe28

Please sign in to comment.