• Encode a JSON-LD document into CBOR-LD bytes

    Parameters

    • jsonldDocument: Record<string, unknown>

      The json document to encode

    • documentLoader: DocumentLoader

      The document loader to resolve contexts

    Returns ResultAsync<Uint8Array, InvalidCborldEncodeError>

    A ResultAsync containing the decoded cborld bytes on ok or a InvalidCborldEncodeError on error

Generated using TypeDoc