Home

Awesome

TDW Logo

Universal Resolver Driver: tdw

This is a Universal Resolver driver for did:tdw identifiers.

Specifications

Example DIDs

did:tdw:QmbkyrrjFQ3Z2WiDfmesKpmeUhemaiqkWgwemovmVaTJfQ:demo.identifier.me:client:c9dd16b7-e079-43da-b0a9-36515e726c6f
did:tdw:QmbnQXj7DhWFrmgjDPKZCybn8fkKW7Wze57SQHpwsSQ7NZ:gist.githubusercontent.com:brianorwhatever:9c4633d18eb644f7a47f93a802691626:raw

Build and Run (Docker)

docker build -f ./Dockerfile . -t brianrichter/uni-resolver-driver-did-tdw
docker run -p 8080:8080 brianrichter/uni-resolver-driver-did-tdw
curl -X GET http://localhost:8080/1.0/identifiers/did:tdw:QmbnQXj7DhWFrmgjDPKZCybn8fkKW7Wze57SQHpwsSQ7NZ:gist.githubusercontent.com:brianorwhatever:9c4633d18eb644f7a47f93a802691626:raw

Build and Run (Bun)

bun index.ts

Driver Metadata

The driver returns the following metadata in addition to a DID document:

{
    "versionId": "1-Qmds9CUMtvCTo7FmrTD3RgpKcAj6yjoVq57xh9o8YrZzRP",
    "created": "2024-10-24T09:21:37",
    "updated": "2024-10-24T09:21:37",
    "previousLogEntryHash": "QmbkyrrjFQ3Z2WiDfmesKpmeUhemaiqkWgwemovmVaTJfQ",
    "scid": "QmbkyrrjFQ3Z2WiDfmesKpmeUhemaiqkWgwemovmVaTJfQ",
    "prerotation": false,
    "portable": false,
    "nextKeyHashes": [],
    "deactivated": false,
    "updateKeys": [
      "z6MkphavubMiWGTLX63rfQPGdxsxNU7i2uEuMvEnmpnBT44p"
    ],
    "witnesses": [],
    "witnessThreshold": 0
  }