iya-sts
    Preparing search index...

    Variable canonize

    canonize: (
        document: any,
        opts?: { canonicalIdMap?: Map<string, string> },
    ) => Promise<string> = ...

    Type Declaration

      • (
            document: any,
            opts?: { canonicalIdMap?: Map<string, string> },
        ): Promise<string>
      • Canonicalizes a JSON-LD document with RDFC-1.0, as canonical N-Quads.

        Parameters

        • document: any

          the JSON-LD document

        • Optionalopts: { canonicalIdMap?: Map<string, string> }

          canonicalIdMap, filled with the blank node relabelling when given

        Returns Promise<string>

        the canonical N-Quads

        Error, with jsonld's reason, for a document not safe to sign: an undefined term, a relative IRI, an unknown context