Create DID
DID provides three methods to construct the DID object according to the DID string and destroy the DID object after use. The DID string is roughly divided into three parts: schema, method, and methodSpecificId. Each part is separated by “:”, for example: did:elastos:ICJ4Z2Dulrhezysvjknjpkyhqfdxyv7pn.
Example
Usage
The method generates DID object according to idstring, where it's a string containing id information, such as did:elastos:ixxxxxxx.
The method generates a new DID object according to the provided method specific string and default “method” string, such as ixxxxxxx.
The method generates a new DID object according to the provided method specific string and method string. For example, method specific is ixxxxxxx and method string is method.
DID object obtained by the above three methods needs to be destroyed after use.
Last updated