mirror of
https://github.com/erhant/circomkit.git
synced 2026-04-13 03:00:27 -04:00
* added bun example * add cmdline docs * added witness test * add path check to workflows
Circomkit with Bun
In this example, we use Bun with the SHA256 circuit.
Installation
Simply do:
bun install
Usage
You can see an example within src/index.ts. Run it with:
bun start
For the CLI, you can test the entire flow as follows:
- Compile circuit:
bunx circomkit compile sha256_32 - Prove with default input:
bunx circomkit prove sha256_32 default - Verify the proof:
bunx circomkit verify sha256_32 default - Create contract:
bunx circomkit contract sha256_32 - Create calldata:
bunx circomkit calldata sha256_32 default
Notice that we use bunx instead of npx to use Bun!
Testing
Run tests with:
bun test