Creating a DID
While there exists many DIDs, this tutorial will focus only on ethr
DID. At the moment, OpenAttestation only supports ethr
DID.
The creation of an ethr
DID is identical to the creation of a wallet, as it relies entirely on the ethereum architecture. Once the wallet will be created, we will need to retrieve its private key:
Create the wallet:
A wallet will be created in the current folder, in the
wallet.json
file.Retrieve the private key:
There are two information to keep very importantly for the next steps:
- the wallet address (
0xaCc51f664D647C9928196c4e33D46fd98FDaA91D
in the example above) - the private key (
0x7b227ac59116f3eeb2b265422cf3cbfbd244c525961fb297eb52153ec62aa845
in the example above)
Please note that you will definitely get different values.
In order to make the tutorial easier to follow, we decided to reveal all the information about the wallet we used, including the private key. We used a throw-away wallet for that purpose. That means that we will never use this wallet again. It's very important that you NEVER SHARE THE PRIVATE KEY of your wallet.
You can check your DID at https://dev.uniresolver.io/1.0/identifiers/did:ethr:CHANGE_BY_YOUR_WALLET_ADDRESS (for instance with check this url with the example above) )