DIDDocPeerDID

data class DIDDocPeerDID @JvmOverloads constructor(val did: String, val authentication: List<VerificationMethodPeerDID>, val keyAgreement: List<VerificationMethodPeerDID> = emptyList(), val service: List<Service>? = null)(source)

Represents a PeerDID DID Document.

Constructors

Link copied to clipboard
constructor(did: String, authentication: List<VerificationMethodPeerDID>, keyAgreement: List<VerificationMethodPeerDID> = emptyList(), service: List<Service>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Represents the agreementKids property in the DIDDocPeerDID class. It is a read-only property that returns a list of IDs of key agreements in the DID document.

Link copied to clipboard

The list of authentication verification methods.

Link copied to clipboard

Retrieves a list of IDs from the authentication list.

Link copied to clipboard
val did: String

The DID identifier.

Link copied to clipboard

The list of key agreement verification methods.

Link copied to clipboard
val service: List<Service>? = null

The list of service endpoints.

Functions

Link copied to clipboard
fun toDict(): Map<String, Any>

Converts the DID document to a dictionary representation.

Link copied to clipboard
fun toJson(): String

Converts the object to its JSON representation as a String.