NilFoundation / zkllvm-blueprint

Circuit components definition library for zkLLVM circuit compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Circuit Definition Library for =nil; Foundation's Cryptography Suite

Run tests

Dependencies

Building and installation

cmake -B build -DCMAKE_INSTALL_PREFIX=/path/to/install
make -C build install

Note: if you got an error on find_package during cmake configuration, make sure that you provided paths to the installed dependencies (for example, via CMAKE_PREFIX_PATH environment variable)

Nix support

This repository provides Nix flake, so once you have installed Nix with flake support, you can use single command to fetch all the dependencies and build:

nix build ?submodules=1#

To activate Nix development environment:

nix develop

To run all tests:

nix flake check -L ?submodules=1#

To build/develop/test with local crypto3 version, add an argument --override-input nil-crypto3 /path/to/local/crypto3 to any of the above commands.

About

Circuit components definition library for zkLLVM circuit compiler

License:MIT License


Languages

Language:C++ 99.4%Language:Python 0.3%Language:CMake 0.2%Language:Nix 0.1%Language:Shell 0.0%