JsonLdCanonicalizationService

JSON-LD canonicalization implementation.

Note: Full URDNA2015 implementation requires a JSON-LD library. This is a simplified implementation that provides basic canonicalization. For production use, consider integrating with a full JSON-LD library.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val isConformant: Boolean = false

Not URDNA2015-conformant: this implementation uses deterministic JSON serialization, not the RDF Dataset Normalisation algorithm. A conformant implementation would set this to true.

Functions

Link copied to clipboard
open suspend override fun canonicalize(document: DidDocument): String

Canonicalize DID document using URDNA2015 algorithm.

Link copied to clipboard
open suspend override fun computeDigest(document: DidDocument): String

Compute document digest for integrity verification.

Link copied to clipboard
open suspend override fun normalize(document: DidDocument): DidDocument

Normalize document for comparison.