DidResolutionResultJson

Serializes a DidResolutionResult to the DID Resolution Result JSON structure of DID Resolution 1.0 §9.

The structure always carries all three members: didDocument (JSON null when there is no document), didResolutionMetadata and didDocumentMetadata (an empty object on failure, as §4 requires).

Properties

Link copied to clipboard
const val MEDIA_TYPE: String

Media type of this data structure (§9).

Functions

Link copied to clipboard
fun toJson(result: DidResolutionResult): JsonObject