Function createContext

  • Creates a context configuration from multiple entries.

    Parameters

    • Rest ...entires: {
          subject: Record<string, Record<string, unknown>>;
          vc: Record<string, Record<string, unknown>>;
      }[]

      An array of objects containing VC and subject records.

    Returns {
        data: {
            @context: (null | {
                @protected: boolean;
                @version: number;
            })[];
            @id: string;
        };
    }

    An object representing the combined context configuration.

    • data: {
          @context: (null | {
              @protected: boolean;
              @version: number;
          })[];
          @id: string;
      }
      • @context: (null | {
            @protected: boolean;
            @version: number;
        })[]
      • @id: string