Javascript library to work with circomlib circuits
Go to file
tornadocontrib 2aef7aade8
Support commonjs as well
Full compare: bfa4ce1366...tornadocontrib:circomlibjs:main
2024-12-18 17:32:18 +00:00
.github/workflows remove nvmrc 2024-04-15 16:16:46 +02:00
.vscode Removes many dependencies and bundles to ES Module. 2024-12-06 13:17:31 +08:00
build Support commonjs as well 2024-12-18 17:32:18 +00:00
src Removes many dependencies and bundles to ES Module. 2024-12-06 13:17:31 +08:00
test Removes many dependencies and bundles to ES Module. 2024-12-06 13:17:31 +08:00
tools Adapt to ffjavascript asyncronous 2021-10-30 13:57:29 +02:00
.gitignore Poseidon in wasm 2021-11-23 13:22:47 +01:00
.npmignore Removes many dependencies and bundles to ES Module. 2024-12-06 13:17:31 +08:00
badmsges.md build 2022-06-19 09:55:10 +02:00
Dockerfile Removes many dependencies and bundles to ES Module. 2024-12-06 13:17:31 +08:00
esbuild.mjs Removes many dependencies and bundles to ES Module. 2024-12-06 13:17:31 +08:00
main.js publis buildPoseidonWasm 2022-07-15 21:38:09 +02:00
package-lock.json Support commonjs as well 2024-12-18 17:32:18 +00:00
package.json Support commonjs as well 2024-12-18 17:32:18 +00:00
README.md Removes many dependencies and bundles to ES Module. 2024-12-06 13:17:31 +08:00
rollup.cjs.config.js Support commonjs as well 2024-12-18 17:32:18 +00:00

Fork

This is a fork of the version of circomlibjs that is used in the Tornado Classic UI. The changes here only seek to remove as many dependencies as possible, and make the project bundlable with a simple bundler like esbuild. A Dockerfile is included to facilitate deterministic builds of the generated build/bundle.mjs file. You can generate and extract the bundle file by doing:

docker image build --tag temp_image .
docker container create --tag temp_container temp_image
docker container temp_container:/workspace/build/bundle.mjs bundle.mjs
docker container rm temp_container
docker image rm temp_image

The full set of changes between what Tornado Classic UI uses and this can be seen at https://github.com/iden3/circomlibjs/compare/v0.1.2...MicahZoltu:circomlibjs:main, and details about each change can be seen in the commit messages. Note: This was forked off of a more recent version of circomlibjs, if you want to see only the changes between the latest version of circomlibjs and this then see bfa4ce1366...MicahZoltu:circomlibjs:main

Everything below in this Readme is from the original repository.

circomlibjs

circomlibjs is a Javascript library that provides programs to compute the witness of several circuits of circomlib. This library is used to make tests of circomlib circuits.

In the src directory the package includes these programs.

In the test directory includes its own tests and.

In the tools directory includes programs to precompute some needed parameters.

You can install circomlibjs with the following command:

npm install -g circomlibjs