Package-level declarations
Types
Represents a DID Document following W3C DID Core structure.
DID document metadata per DID Resolution 1.0 §4.3 — metadata about the DID document.
An entry for DidDocument.alsoKnownAs per W3C DID / Controlled Identifiers: each value is either a DID (did:…) or a non-DID URL (absolute URI, e.g. https://…).
Represents a service endpoint in a DID Document.
Capabilities supported by a DID method implementation.
Type-safe model for DidService.serviceEndpoint.
KSerializer for ServiceEndpoint that preserves the exact W3C DID Core wire format:
Represents a verification method in a DID Document.
Functions
Expands relative DID URLs in this document to absolute DID URLs, per the expandRelativeUrls resolution option (DID Resolution 1.0 §4.1, §4.4).
Parse service type from JSON (string or array of strings) per DID 1.1 §5.4.
Gets the service endpoint as an array, if it's an array.
Gets the service endpoint as an object (map), if it's an object.
Gets the service endpoint as a URL string, if it's a simple URL.
Parses a JsonElement into a ServiceEndpoint, or returns null for null/unsupported shapes. Object values are decoded into native Kotlin values (String/Long/Double/Boolean/Map/List) so the representation matches what the previous untyped parser produced.
Converts a ServiceEndpoint to a JsonElement using the canonical DID document wire rules. Numbers are emitted as their original JSON token where possible; primitives recovered from ServiceEndpoint.ObjectEndpoint/ServiceEndpoint.ArrayEndpoint follow the same rules as the shared DID document producer.
Returns the typed ServiceEndpoint for this service.
Converts a ServiceEndpoint back to a raw value (String, Map, or List).
Serialize service type (DID 1.1: string or set of strings) to JSON. Single type → string; multiple → array.