You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-3Lines changed: 16 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,8 @@ Informally, the library provides the ability to create transactions that run arb
31
31
32
32
This repository contains several Rust crates that implement the different building blocks of ZEXE. The high-level structure of the repository is as follows.
33
33
34
-
*[`algebra`](algebra): Rust crate that provides finite fields and elliptic curves
34
+
*[`algebra-core`](algebra-core): Rust crate that provides generic arithmetic for finite fields and elliptic curves
35
+
*[`algebra`](algebra): Rust crate that provides concrete instantiations of some finite fields and elliptic curves
35
36
*[`crypto-primitives`](crypto-primitives): Rust crate that implements some useful cryptographic primitives (and constraints for them)
36
37
*[`dpc`](dpc): Rust crate that implements DPC schemes (the main cryptographic primitive in this repository)
37
38
*[`ff-fft`](ff-fft): Rust crate that provides efficient finite field polynomial arithmetic based on finite field FFTs
@@ -64,9 +65,9 @@ cargo build --release
64
65
This library comes with unit tests for each of the provided crates. Run the tests with:
65
66
```bash
66
67
cargo test
67
-
```
68
+
```
68
69
69
-
Lastly, this library comes with benchmarks for the following crates:
70
+
This library comes with benchmarks for the following crates:
70
71
71
72
-[`algebra`](algebra)
72
73
-[`dpc`](dpc)
@@ -76,6 +77,18 @@ These benchmarks require the nightly Rust toolchain; to install this, run `rustu
76
77
cargo +nightly bench
77
78
```
78
79
80
+
Compiling with `adcxq`, `adoxq` and `mulxq` instructions can lead to a 30-70% speedup. These are available on most `x86_64` platforms (Broadwell onwards for Intel and Ryzen onwards for AMD). Run the following command:
Tip: If optimising for performance, your mileage may vary with passing `--emit=asm` to `RUSTFLAGS`.
85
+
86
+
To bench `algebra-benches` with greater accuracy, especially for functions with execution times on the order of nanoseconds, use the `n_fold` feature to run selected functions 1000x per iteration. To run with multiple features, make sure to double quote the features.
0 commit comments