This is a Universal Resolver driver for did:erc725 identifiers.
did:erc725:ropsten:2F2B37C890824242Cb9B0FE5614fA2221B79901E
For downloading the dependencies of this project a Personal Access Token for GitHub must be configured in file settings.xml according to Creating a personal access token for the command line. Then add them to environment variable,
GITHUB_READ_PACKAGES_OWNER=OWNER
GITHUB_READ_PACKAGES_TOKEN=TOKEN
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
Maven build:
mvn --settings settings.xml clean install
The driver recognizes the following environment variables:
- Specifies how the driver interacts with the Ethereum blockchain.
- Possible values:
jsonrpc
: Connects to a geth instance via JSON-RPChybrid
: Connects to a geth instance via JSON-RPC as well as to the EtherScan API
- Default value:
hybrid
- Specifies the JSON-RPC URL of a geth instance running on Mainnet.
- Default value:
https://mainnet.infura.io/v3/fd9e225bc1234f49b48b295c611078eb
- Specifies the JSON-RPC URL of a geth instance running on Ropsten.
- Default value:
https://ropsten.infura.io/v3/fd9e225bc1234f49b48b295c611078eb
- Specifies the JSON-RPC URL of a geth instance running on Rinkeby.
- Default value:
https://rinkeby.infura.io/v3/fd9e225bc1234f49b48b295c611078eb
- Specifies the JSON-RPC URL of a geth instance running on Kovan.
- Default value:
https://kovan.infura.io/v3/fd9e225bc1234f49b48b295c611078eb
- Specifies the URL of the EtherScan API for Mainnet.
- Default value:
http://api.etherscan.io/api
- Specifies the URL of the EtherScan API for Ropsten.
- Default value:
http://api-ropsten.etherscan.io/api
- Specifies the URL of the EtherScan API for Rinkeby.
- Default value:
http://api-rinkeby.etherscan.io/api
- Specifies the URL of the EtherScan API for Kovan.
- Default value:
http://api-kovan.etherscan.io/api
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.