No description
  • Rust 98.4%
  • Nix 1.1%
  • Shell 0.5%
Find a file
2023-08-24 09:01:12 +02:00
.github Bump cachix/install-nix-action from 21 to 22 2023-07-17 16:39:25 +00:00
arithmetic small-fix: fix_one_variable_helper not-parallel behavior 2023-08-24 09:01:12 +02:00
bench_results Batch all (#89) 2022-10-13 23:21:30 -04:00
hyperplonk Update build 2023-07-17 10:11:31 -06:00
scripts Update build 2023-07-17 10:11:31 -06:00
subroutines Update itertools requirement from 0.10.4 to 0.11.0 2023-07-17 16:39:13 +00:00
transcript Bump to arkworks-0.4.0 (#126) 2023-02-21 08:53:49 -05:00
util open source under MIT license 2023-01-24 12:10:53 +00:00
.envrc env setup (#6) 2022-04-20 17:10:25 -04:00
.gitignore enabling batch opening and mock tests (#80) 2022-09-27 14:51:30 -04:00
Cargo.toml Batch all (#89) 2022-10-13 23:21:30 -04:00
flake.lock update nix to flake (#101) 2023-01-12 22:30:35 +08:00
flake.nix update nix to flake (#101) 2023-01-12 22:30:35 +08:00
LICENSE open source under MIT license 2023-01-24 12:10:53 +00:00
README.md README (#116) 2023-01-18 08:56:37 -05:00
rustfmt.toml env setup (#6) 2022-04-20 17:10:25 -04:00
shell.nix update nix to flake (#101) 2023-01-12 22:30:35 +08:00

Hyperplonk library

A linear-time FFT-free SNARK proof system (https://eprint.iacr.org/2022/1355.pdf).

Disclaimer

DISCLAIMER: This software is provided "as is" and its security has not been externally audited. Use at your own risk.

Development environment setup

Install RUST

We recommend using nix for installing the correct version of rust and additional libraries:

> curl -L https://nixos.org/nix/install | sh

Compiling the project for the first time

> nix-shell
> cargo build

Direnv

We recommend the following tools:

Run direnv allow at the repo root. You should see dependencies (including Rust) being installed (the first time might take a while). Upon modification on flake.nix, run direnv reload to reflect new dependencies or environment setups.

Tests

> cargo test --release --all

Generate and read the documentation

Standard

> cargo doc --open

Code formatting

To format your code run

> cargo fmt

Updating non-cargo dependencies

Run nix flake update if you would like to pin other version edit flake.nix beforehand. Commit the lock file when happy.

To update only a single input specify it as an argument, for example

nix flake update github:oxalica/rust-overlay

Benchmarks

To obtain benchmarks, run the script file scripts/run_benchmarks.sh. We refer to Table 5 and Table 6 in https://eprint.iacr.org/2022/1355.pdf for an example benchmark.