Skip to content

rodolfomiranda/uni-resolver-driver-did-ada

Repository files navigation

DIF Logo

Universal Resolver Driver for Sidetree-Cardano did:ada method

This is a Universal Resolver driver for Sidetree-Cardano did:ada identifiers.

Since this driver is not yet published into Decentralized Identity Foundation repository, you can use our forked Universal Resolver that deploys all official driver plus this one.

Specifications

Example DID

did:ada:EiDfLfmqWKLEgbALdWg2jj3m8LFbfFSwPdee6JvFE5VfTQ

Build and Run (Docker)

docker build -f ./docker/Dockerfile . -t rodopincha/uni-resolver-driver-did-ada
docker run -p 8080:8080 rodopincha/uni-resolver-driver-did-ada
curl -X GET http://localhost:8080/1.0/identifiers/did:ada:EiDfLfmqWKLEgbALdWg2jj3m8LFbfFSwPdee6JvFE5VfTQ

Pull from DockerHub

docker pull rodopincha/uni-resolver-driver-did-ada
docker run -p 8080:8080 rodopincha/uni-resolver-driver-did-ada
curl -X GET http://localhost:8080/1.0/identifiers/did:ada:EiDfLfmqWKLEgbALdWg2jj3m8LFbfFSwPdee6JvFE5VfTQ

Build and Run (NodeJS)

npm start

Driver Environment Variables

The driver recognizes the following environment variable: uniresolver_driver_did_ada_node_url

  • Default value: 'https://testnet.sidetree-cardano.com'

Driver Metadata

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

"didDocumentMetadata":{
      "method":{
         "published":true,
         "recoveryCommitment":"EiCqoMGfQKKmaxONsAoBuxUuPpMXrqnQ4Jv0dmwaMl1WWQ",
         "updateCommitment":"EiAWGSlddbHJReo2sOD-0-RM1ChgEtEAc1HOFqNtdyHo6g"
      },
      "canonicalId":"did:ada:EiDfLfmqWKLEgbALdWg2jj3m8LFbfFSwPdee6JvFE5VfTQ"
   }

About

Universal Resolver Driver for sidetree-cardano did:ada

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published