VerificationMethod

@Serializable
data class VerificationMethod(val id: VerificationMethodId, val type: String, val controller: Did, val publicKeyJwk: Map<String, Any?>? = null, val publicKeyMultibase: String? = null)

Represents a verification method in a DID Document.

Following W3C DID Core specification, verification methods can be embedded in the verificationMethod array or referenced by ID in relationship arrays.

Parameters

id

The verification method identifier (typed)

type

The type of verification method (e.g., "Ed25519VerificationKey2020")

controller

The DID that controls this verification method (typed)

publicKeyJwk

Public key in JWK format (optional)

publicKeyMultibase

Public key in multibase format (optional)

Constructors

Link copied to clipboard
constructor(id: VerificationMethodId, type: String, controller: Did, publicKeyJwk: Map<String, Any?>? = null, publicKeyMultibase: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Extract the key ID string from a verification method.