Create RootIdentity
RootIdentity is the root identity of the user. To use DID, the user needs to create a root identity object first.
Create RootIdentity Using Mnemonic
The newly created RootIdentity object and its corresponding PrivateKey will be saved to the specified DIDStore. If you need to use the RootIdentity object, you can read it from the store using the method provided by DIDStore.
The mnemonic used by Elastos DID is compatible with that of Bitcoin, both of which comply with BIP39.
Apart from creating RootIdentity by mnemonic, applications can also create RootIdentity by extending the root private key.
Last updated