Skip to content
A Universal Resolver driver for did:erc725 identifiers.
Java Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
docker
src
.gitignore
.gitlab-ci.yml
README.md
pom.xml Move files to root. Jan 6, 2020

README.md

DIF Logo

Universal Resolver Driver: did:erc725

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

Specifications

Example DIDs

did:erc725:ropsten:2F2B37C890824242Cb9B0FE5614fA2221B79901E

Build and Run (Docker)

docker build -f ./docker/Dockerfile . -t universalresolver/driver-did-erc725
docker run -p 8080:8080 universalresolver/driver-did-erc725
curl -X GET http://localhost:8080/1.0/identifiers/did:erc725:ropsten:2F2B37C890824242Cb9B0FE5614fA2221B79901E

Build (native Java)

  1. First, build https://github.com/decentralized-identity/universal-resolver/tree/master/resolver/java

Then run:

mvn clean install

Driver Environment Variables

The driver recognizes the following environment variables:

uniresolver_driver_did_erc725_ethereumConnection

  • Specifies how the driver interacts with the Ethereum blockchain.
  • Possible values:
    • jsonrpc: Connects to a geth instance via JSON-RPC
    • hybrid: Connects to a geth instance via JSON-RPC as well as to the EtherScan API
  • Default value: hybrid

uniresolver_driver_did_erc725_rpcUrlMainnet

  • Specifies the JSON-RPC URL of a geth instance running on Mainnet.
  • Default value: https://mainnet.infura.io/v3/fd9e225bc1234f49b48b295c611078eb

uniresolver_driver_did_erc725_rpcUrlRopsten

  • Specifies the JSON-RPC URL of a geth instance running on Ropsten.
  • Default value: https://ropsten.infura.io/v3/fd9e225bc1234f49b48b295c611078eb

uniresolver_driver_did_erc725_rpcUrlRinkeby

  • Specifies the JSON-RPC URL of a geth instance running on Rinkeby.
  • Default value: https://rinkeby.infura.io/v3/fd9e225bc1234f49b48b295c611078eb

uniresolver_driver_did_erc725_rpcUrlKovan

  • Specifies the JSON-RPC URL of a geth instance running on Kovan.
  • Default value: https://kovan.infura.io/v3/fd9e225bc1234f49b48b295c611078eb

uniresolver_driver_did_erc725_etherscanApiMainnet

  • Specifies the URL of the EtherScan API for Mainnet.
  • Default value: http://api.etherscan.io/api

uniresolver_driver_did_erc725_etherscanApiRopsten

  • Specifies the URL of the EtherScan API for Ropsten.
  • Default value: http://api-ropsten.etherscan.io/api

uniresolver_driver_did_erc725_etherscanApiRinkeby

  • Specifies the URL of the EtherScan API for Rinkeby.
  • Default value: http://api-rinkeby.etherscan.io/api

uniresolver_driver_did_erc725_etherscanApiKovan

  • Specifies the URL of the EtherScan API for Kovan.
  • Default value: http://api-kovan.etherscan.io/api

Driver Metadata

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

  • managementKeys: MANAGEMENT keys as defined by ERC725.
  • managementAddresses: MANAGEMENT key addresses as defined by ERC725.
  • actionKeys: ACTION keys as defined by ERC725.
  • actionAddresses: ACTION key addresses as defined by ERC725.
  • claimKeys: CLAIM keys as defined by ERC725.
  • claimAddresses: CLAIM key addresses as defined by ERC725.
  • encryptionKeys: ENCRYPTION keys as defined by ERC725.
  • encryptionAddresses: ENCRYPTION key addresses as defined by ERC725.
You can’t perform that action at this time.