Backup and Synchronize
RootIdentity provides a method to get DIDs on all chains derived from it, then save the corresponding DID documents to the DID Store. This method enables the user to update multiple DIDs under the root identity at one time, get the latest document, and initialize the user’s new DID Store.
If the RootIdentity is generated based on mnemonic, then we can export this mnemonic for backup. Note: The root identity created with the extended root private key cannot export mnemonics.
Export Mnemonic
Restore RootIdentity
Usage
Handle is a solution provided by users when locally acquired DID document and that acquired from the chain conflict with each other. The default solution provided by the SDK is to keep locally acquired DID document and ignore the version obtained from the chain. To apply different solutions, users need to set this parameter.
Index indicates the nth DID derived from the root identity; the meaning of handle is the same as above.
Last updated