Skip to content

NilFoundation/zkllvm-blueprint

Repository files navigation

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.