Function loadCircomkitConfig

  • Loads the configuration for Circomkit for use in unit tests or scripts. All paths in the config will be fixed up to be based on the given package path, rather than relative to the current working directory.

    Parameters

    • gpcircuitsPackagePath: string

      file path to the root of the gpcircuits package in the repo

    • readFileSync: ((path, options) => string)

      callable function for readFileSync, or a compatible replacement in browser. This is necessary to avoid polyfill errors since this function is intended for utests, but included in a library which can be loaded in a browser.

        • (path, options): string
        • Parameters

          • path: PathLike
          • options: BufferEncoding

          Returns string

    Returns Partial<CircomkitConfig>

    a Circomkit config object suitable for the Circomkit constructor.

Generated using TypeDoc