OpenZKP Prime Field

Crates.io CircleCI Codecov

A 251-bit prime field suitable for FFTs.

Goals

For optimization, there are a few different scenarios:

Note: The modulus is always assumed to be 256bit or less.

Benchmark

Checkout master branch:

sh cargo bench --bench benchmark -- --save-baseline master

sh cargo bench --bench benchmark -- --baseline master open target/criterion/report/index.html

Benchmarking using Mac OS' instrumentation. For this we need the cargo-instruments plugin for Cargo.

sh cargo install cargo-instruments

You can then run tests under profiling. It is recommended to filter for a specific test.

sh cargo instruments --release --bench benchmark --open [test name]

References and benchmarks

References