DID

data class DID @JvmOverloads constructor(val schema: String = DID, val method: String, val methodId: String, val alias: String? = null)(source)

A DID is a unique and persistent identifier for a subject or object, such as a person, organization, or device. It is created and managed using a specific DID method, and consists of a schema, method, and method ID. The schema indicates the type of DID (e.g. "did"), the method indicates the specific interface or process used to resolve and manage the DID (e.g. "prism"), and the method ID is a unique identifier within the DID method. As specified in the W3C DID standards.

Constructors

Link copied to clipboard
constructor(string: String)

Constructor overload for creating a DID object based on a String.

constructor(schema: String = DID, method: String, methodId: String, alias: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val alias: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the DID object.