From 9d064b06f408dccc82cbe0f5f220c88cc08f5337 Mon Sep 17 00:00:00 2001 From: "did:health:dev" <108614751+did-health@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:07:44 -0500 Subject: [PATCH 1/6] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 53f551ffe..b5677e71e 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,8 @@ You should then be able to resolve identifiers locally using simple `curl` reque curl -X GET http://localhost:8080/1.0/identifiers/did:keri:EKYGGh-FtAphGmSZbsuBs_t4qpsjYJ2ZqvMKluq9OxmP curl -X GET http://localhost:8080/1.0/identifiers/did:webs:peacekeeper.github.io:did-webs-iiw-tutorial:EKYGGh-FtAphGmSZbsuBs_t4qpsjYJ2ZqvMKluq9OxmP curl -X GET http://localhost:8080/1.0/identifiers/did:content:3SqTXtoMpiPeNo5vEP2p7yNGQUeCGjqW1wnctv8yaCWXojD29GYcUEo + curl -X GET http://localhost:8080/1.0/identifiers/did:health:000005saasas1234 + You can also use an "Accept" header to request the DID document in a specific representation, e.g.: @@ -175,6 +177,7 @@ Are you developing a DID method and Universal Resolver driver? Click [Driver Dev | [did-keri](https://github.com/hyperledger-labs/did-webs-resolver) | 0.1 | [0.1](https://trustoverip.github.io/tswg-did-method-webs-specification/) | [gleif/did-keri-resolver](https://hub.docker.com/r/gleif/did-keri-resolver) | KERI | | [did-webs](https://github.com/hyperledger-labs/did-webs-resolver) | 0.1 | [0.1](https://trustoverip.github.io/tswg-did-method-webs-specification/) | [gleif/did-webs-resolver](https://hub.docker.com/r/gleif/did-webs-resolver) | KER, Web | | [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-health]([[https://github.com/KataruInc/did-content-spec](https://github.com/didhealth/health-did-resolver/blob/v2/doc/did-method-spec.md))](https://github.com/didhealth/health-did-resolver/blob/v2/doc/did-method-spec.md) | 2.0 | [2.0]([[https://github.com/KataruInc/did-content-spec](https://github.com/didhealth/health-did-resolver/blob/v2/doc/did-method-spec.md)](https://github.com/didhealth/health-did-resolver/blob/v2/doc/did-method-spec.md)) | [didhealth/uni-resolver-driver-did-health]() | did:health | ## More Information From 759d7a02b82d6aed309a54d08bd7e42f37d4467c Mon Sep 17 00:00:00 2001 From: "did:health:dev" <108614751+did-health@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:11:31 -0500 Subject: [PATCH 2/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b5677e71e..50ce0333e 100644 --- a/README.md +++ b/README.md @@ -177,7 +177,7 @@ Are you developing a DID method and Universal Resolver driver? Click [Driver Dev | [did-keri](https://github.com/hyperledger-labs/did-webs-resolver) | 0.1 | [0.1](https://trustoverip.github.io/tswg-did-method-webs-specification/) | [gleif/did-keri-resolver](https://hub.docker.com/r/gleif/did-keri-resolver) | KERI | | [did-webs](https://github.com/hyperledger-labs/did-webs-resolver) | 0.1 | [0.1](https://trustoverip.github.io/tswg-did-method-webs-specification/) | [gleif/did-webs-resolver](https://hub.docker.com/r/gleif/did-webs-resolver) | KER, Web | | [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-health]([[https://github.com/KataruInc/did-content-spec](https://github.com/didhealth/health-did-resolver/blob/v2/doc/did-method-spec.md))](https://github.com/didhealth/health-did-resolver/blob/v2/doc/did-method-spec.md) | 2.0 | [2.0]([[https://github.com/KataruInc/did-content-spec](https://github.com/didhealth/health-did-resolver/blob/v2/doc/did-method-spec.md)](https://github.com/didhealth/health-did-resolver/blob/v2/doc/did-method-spec.md)) | [didhealth/uni-resolver-driver-did-health]() | did:health | +| [did-health](https://github.com/didhealth/health-did-resolver/blob/v2/doc/did-method-spec.md) | 2.0 | [2.0](https://github.com/KataruInc/did-content-spec](https://github.com/didhealth/health-did-resolver/blob/v2/doc/did-method-spec.md) | [didhealth/uni-resolver-driver-did-health](https://hub.docker.com/r/didhealth/uni-resolver-driver-did-health) | did:health | ## More Information From eca694ec9702da1bbf3586f2b106338e64a77f7b Mon Sep 17 00:00:00 2001 From: "did:health:dev" <108614751+did-health@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:13:20 -0500 Subject: [PATCH 3/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 50ce0333e..e04c0d5d5 100644 --- a/README.md +++ b/README.md @@ -177,7 +177,7 @@ Are you developing a DID method and Universal Resolver driver? Click [Driver Dev | [did-keri](https://github.com/hyperledger-labs/did-webs-resolver) | 0.1 | [0.1](https://trustoverip.github.io/tswg-did-method-webs-specification/) | [gleif/did-keri-resolver](https://hub.docker.com/r/gleif/did-keri-resolver) | KERI | | [did-webs](https://github.com/hyperledger-labs/did-webs-resolver) | 0.1 | [0.1](https://trustoverip.github.io/tswg-did-method-webs-specification/) | [gleif/did-webs-resolver](https://hub.docker.com/r/gleif/did-webs-resolver) | KER, Web | | [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-health](https://github.com/didhealth/health-did-resolver/blob/v2/doc/did-method-spec.md) | 2.0 | [2.0](https://github.com/KataruInc/did-content-spec](https://github.com/didhealth/health-did-resolver/blob/v2/doc/did-method-spec.md) | [didhealth/uni-resolver-driver-did-health](https://hub.docker.com/r/didhealth/uni-resolver-driver-did-health) | did:health | +| [did-health](https://github.com/didhealth/health-did-resolver/blob/v2/doc/did-method-spec.md) | 2.0 | [2.0](https://github.com/didhealth/health-did-resolver/blob/v2/doc/did-method-spec.md) | [didhealth/uni-resolver-driver-did-health](https://hub.docker.com/r/didhealth/uni-resolver-driver-did-health) | did:health | ## More Information From 74cd8df16944751cc88b4e5d3904f70f906b6452 Mon Sep 17 00:00:00 2001 From: "did:health:dev" <108614751+did-health@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:19:14 -0500 Subject: [PATCH 4/6] Update .env --- .env | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 30c77b5ef..3b43ea6d1 100644 --- a/.env +++ b/.env @@ -49,4 +49,9 @@ uniresolver_driver_did_com_network=https://lcd-mainnet.commercio.network uniresolver_driver_did_ev_node_url=https://polygon-mumbai.g.alchemy.com/v2/jLMUummm16stzMQjW1OB79IwuDjsJqS7 uniresolver_driver_did_ev_address_im=0x4E4f55190185f2694D331E5c9Fd70a2B75Eb4Bd2 -uniresolver_driver_did_ev_base_blocks=2700000 \ No newline at end of file +uniresolver_driver_did_ev_base_blocks=2700000 + +ETHEREUM_NODE_ENDPOINT=https://goerli.infura.io/v3/fb8220b7b2934907806afc7ff635f1f0 +CONTRACT_ABI=[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"string","name":"_healthDid","type":"string"},{"internalType":"string[]","name":"_uris","type":"string[]"}],"name":"addAltData","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_peerAddress","type":"address"},{"internalType":"string","name":"_healthDid","type":"string"}],"name":"addDelegateAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressDidMapping","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"string","name":"healthDid","type":"string"},{"internalType":"string","name":"ipfsUri","type":"string"},{"internalType":"uint8","name":"reputationScore","type":"uint8"},{"internalType":"bool","name":"hasWorldId","type":"bool"},{"internalType":"bool","name":"hasPolygonId","type":"bool"},{"internalType":"bool","name":"hasSocialId","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"string","name":"","type":"string"}],"name":"delegateAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_healthDid","type":"string"}],"name":"getHealtDID","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address[]","name":"delegateAddresses","type":"address[]"},{"internalType":"string","name":"healthDid","type":"string"},{"internalType":"string","name":"ipfsUri","type":"string"},{"internalType":"string[]","name":"altIpfsUris","type":"string[]"},{"internalType":"uint8","name":"reputationScore","type":"uint8"},{"internalType":"bool","name":"hasWorldId","type":"bool"},{"internalType":"bool","name":"hasPolygonId","type":"bool"},{"internalType":"bool","name":"hasSocialId","type":"bool"}],"internalType":"struct Structs.HealthDID","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_healthDID","type":"string"},{"internalType":"string","name":"_uri","type":"string"}],"name":"registerDID","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_peerAddress","type":"address"},{"internalType":"string","name":"_healthDid","type":"string"}],"name":"removeDelegateAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"did","type":"string"}],"name":"resolveChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"_source","type":"string"}],"name":"stringToBytes32","outputs":[{"internalType":"bytes32","name":"_result","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"},{"internalType":"string","name":"_healthDid","type":"string"}],"name":"transferOwnership","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_healthDid","type":"string"},{"internalType":"string","name":"_uri","type":"string"}],"name":"updateDIDData","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}] + + From cc0866d8d7d83674c95ece874f7b60c09bcaf153 Mon Sep 17 00:00:00 2001 From: "did:health:dev" <108614751+did-health@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:23:47 -0500 Subject: [PATCH 5/6] Update docker-compose.yml --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 8844d431e..63b8e51be 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -287,4 +287,8 @@ services: image: kataru/content-did-driver:latest ports: - "8148:8888" + driver-did-health: + image: didhealth/uni-resolver-driver-did-health:latest + ports: + - "8149:8080" From 2e522880ea9052cab316154cbf17fb5a144d93bd Mon Sep 17 00:00:00 2001 From: "did:health:dev" <108614751+did-health@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:28:16 -0500 Subject: [PATCH 6/6] Update application.yml --- uni-resolver-web/src/main/resources/application.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/uni-resolver-web/src/main/resources/application.yml b/uni-resolver-web/src/main/resources/application.yml index 9672844c3..fe282b2b7 100644 --- a/uni-resolver-web/src/main/resources/application.yml +++ b/uni-resolver-web/src/main/resources/application.yml @@ -321,4 +321,8 @@ uniresolver: - pattern: "^(did:content:.+)$" url: http://driver-did-content:8888/ testIdentifiers: - - did:content:3SqTXtoMpiPeNo5vEP2p7yNGQUeCGjqW1wnctv8yaCWXojD29GYcUEo \ No newline at end of file + - did:content:3SqTXtoMpiPeNo5vEP2p7yNGQUeCGjqW1wnctv8yaCWXojD29GYcUEo + - pattern: "^(did:health:.+)$" + url: http://driver-did-health:8080/ + testIdentifiers: + - did:health:000005saasas1234