mirror of
https://github.com/logos-storage/nim-groth16.git
synced 2026-01-04 06:33:12 +00:00
add readme
This commit is contained in:
parent
46e175752c
commit
ee565ffaef
13
example/circom_build/README.md
Normal file
13
example/circom_build/README.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Compile Example
|
||||||
|
|
||||||
|
This folder uses modified `fr` files from [witnesscalc](https://github.com/0xPolygonID/witnesscalc). These files modify the Circom generated circutes to support compilation on ARM64. This involves adding a `fr_raw_arm64.s` and `fr_raw_generic` to implement the required `fr` operations. It also changes some types to signed/unsigned to match the ARM versions.
|
||||||
|
|
||||||
|
Requires `gmp` and `nlohmann-json` to be installed and usable from `pkg-config`. On macos you can install them using: `brew install gmp nlohmann-json`.
|
||||||
|
|
||||||
|
To build:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cd example/circom_build/
|
||||||
|
nim cpp product.nim
|
||||||
|
./product
|
||||||
|
```
|
||||||
Loading…
x
Reference in New Issue
Block a user