Skip to content

Commit 4feca29

Browse files
authored
Merge pull request #484 from decentralized-identity/add-did-btc1
feat: Add did:btc1 driver
2 parents 6ea1e63 + 92b6cc3 commit 4feca29

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,12 @@ You should then be able to resolve identifiers locally using simple `curl` reque
9292
curl -X GET http://localhost:8080/1.0/identifiers/did:prism:c36cd59bbc62dee1925e1343a8fed051416e417116d6169d060746f1e6816cd4
9393
curl -X GET http://localhost:8080/1.0/identifiers/did:webvh:QmPEQVM1JPTyrvEgBcDXwjK4TeyLGSX1PxjgyeAisdWM1p:gist.githubusercontent.com:brianorwhatever:9c4633d18eb644f7a47f93a802691626:raw
9494
curl -X GET http://localhost:8080/1.0/identifiers/did:quarkid:EiBJ_1z9_OtvrfSgUNnBIs808vsRq7dQCKMP4LuSUosdXQ
95-
9695
curl -X GET http://localhost:8080/1.0/identifiers/did:zkjm:mainnet:d90e52b36a2e2306dc873ec0f7a94351
97-
9896
curl -X GET http://localhost:8080/1.0/identifiers/did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw
9997
curl -X GET 'http://localhost:8080/1.0/identifiers/did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw?gist=f12d4f6fddeed78cb8b1faf1c6f4f171a590c1b05c484118a09847f5caa74d03'
10098
curl -X GET 'http://localhost:8080/1.0/identifiers/did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw?state=7a1a45d22b686cf1bd2f9fbecbed38b725a555e6d8ad68d3780feda9124b1a13'
101-
10299
curl -X GET http://localhost:8080/1.0/identifiers/did:cndid:sf24eYrmwXt6nx4fig3XJm7n9UP6PNRJ3
100+
curl -X GET http://localhost:8080/1.0/identifiers/did:btc1:k1qypcylxwhf8sykn2dztm6z8lxm43kwkyzf07qmp9jafv3zfntmpwtks9hmnrw
103101

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

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,3 +397,7 @@ services:
397397
image: teleinfo/driver-did-cndid:v1.0.0
398398
ports:
399399
- "8160:8080"
400+
driver-did-btc1:
401+
image: universalresolver/driver-did-btc1
402+
ports:
403+
- "8161:8080"

uni-resolver-web/src/main/resources/application.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,4 +371,8 @@ uniresolver:
371371
- pattern: "^(did:cndid:.+)$"
372372
url: ${uniresolver_web_driver_url_did_cndid:http://driver-did-cndid:8080/}
373373
testIdentifiers:
374-
- did:cndid:sf24eYrmwXt6nx4fig3XJm7n9UP6PNRJ3
374+
- did:cndid:sf24eYrmwXt6nx4fig3XJm7n9UP6PNRJ3
375+
- pattern: "^(did:btc1:.+)$"
376+
url: ${uniresolver_web_driver_url_did_btc1:http://driver-did-btc1:8080/}
377+
testIdentifiers:
378+
- did:btc1:k1qypcylxwhf8sykn2dztm6z8lxm43kwkyzf07qmp9jafv3zfntmpwtks9hmnrw

0 commit comments

Comments
 (0)