Skip to content

DID resolver for x/ixo DID methods from ixo chains as registry

License

Notifications You must be signed in to change notification settings

ixofoundation/ixo-did-resolver

Repository files navigation

DIF Logo

Universal Resolver Driver: did:x/ixo

GitHub contributors GitHub repo size

This is a Universal Resolver driver for did:x/ixo identifiers.

Specifications

Example DIDs

did:x:zQ3shoiydFD6jdTdXLPProPZWL6igg9bCyaJY6zEKqQoNE96C

Development

Install NPM dependencies using yarn in the root directory: yarn install

Start development server: yarn start

By default it will be running on port 8080 - it should connect to the blockchain node and be ready to serve DIDs at that endpoint. Example:

curl http://localhost:8080/1.0/identifiers/did:dock:5CDsD8HZa6TeSfgmMcxAkbSXYWeob4jFQmtU6sxr4XWTZzUA

Build and usage

  1. To build the docker image

    docker image build -t ixo-did-resolver -f Dockerfile .
    

    The above will build the image with name ixo-did-resolver and tag latest.

  2. To run the docker container

    docker container run --publish 8080:8080 --detach --name ixo-did-resolver ixo-did-resolver:latest
    

    The server will run at 8080 port in the docker container and the host’s port 8080 is mapped to the container's port 8080

  3. To ssh into the docker container

    docker exec -it ixo-did-resolver /bin/sh
    
  4. The server responds at /1.0/identifiers/<DID with method, like did:x:...>

Driver Environment Variables

The driver recognizes the following environment variables:

RPC_ENDPOINT

This resolver was build following https://github.com/decentralized-identity/universal-resolver/blob/main/docs/driver-development.md

🙋 Find us elsewhere

Discord Telegram Twitter Medium