forked from microsoft/Spartan
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first version of the sqrt PST without the MIPP * snarkpack integration * snarkpack integration * adding mipp as submodule directly * snarkpack integration * finalizing * snarkpack integration * update mipp with latestest optimisations and add preliminary documentation * improve codebase documentation * remove unused imports and apply cargo fix changes * passing v0.4 * adding gh action * correct workflow item * correct working dir and msrv * remove unnecessary stuff * wip * wip * remove circuit in fq as it's not needed now * done for tonight * wip * wip * sip * prallelise commitment and groth16 verification * finalise comments for mipp * wip * finalise comments * wip * compiling but test failing * putting back non random blinds * using absorb when we can * absorbing scalar * with bls12-381 * stuff * trying to bring ark-blst to testudo * correcting random implementation * with square in place * works with blst * works with blst * fix: don't require nightly Rust With removing the `test` feature, it can also be built with a stable Rust release and don't require a nightly Rust version. * using ark-blst main branch * started cleanup and added testudo benchmark * add testudo snark and nizk in separate files * rename functions that perform setups and add comments * prototyping * explain testudo-nizk * add support for odd case in sqrt_pst * add missing constraints and correct proof size for benchmarks * add support for odd case in sqrt_pst * fix typo in comment * Documentation #31 * fix typo in comment * Fix Cargo.toml and add benchmark for sqrt pst (#34) * add benchmark for sqrt pst * fix typo in comment * add README * comment from readme not executing --------- Co-authored-by: Mara Mihali <[email protected]> Co-authored-by: Mara Mihali <[email protected]> Co-authored-by: Volker Mische <[email protected]>
- Loading branch information
1 parent
bae8104
commit 7db2d30
Showing
40 changed files
with
9,773 additions
and
8,339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
[build] | ||
rustflags = [ | ||
"-C", "target-cpu=native", | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,27 @@ | ||
name: Build and Test Testudo | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
# The crate ark-ff uses the macro llvm_asm! when emitting asm which returns an | ||
# error because it was deprecated in favour of asm!. We temporarily overcome | ||
# this problem by setting the environment variable below (until the crate | ||
# is updated). | ||
env: | ||
RUSTFLAGS: "--emit asm -C llvm-args=-x86-asm-syntax=intel" | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_nightly: | ||
cargo-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install | ||
run: rustup default nightly | ||
- name: Install rustfmt Components | ||
run: rustup component add rustfmt | ||
# - name: Install clippy | ||
# run: rustup component add clippy | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose | ||
- name: Build examples | ||
run: cargo build --examples --verbose | ||
- name: Check Rustfmt Code Style | ||
run: cargo fmt --all -- --check | ||
# cargo clippy uses cargo check which returns an error when asm is emitted | ||
# we want to emit asm for ark-ff operations so we avoid using clippy for # now | ||
# - name: Check clippy warnings | ||
# run: cargo clippy --all-targets --all-features | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
override: true | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
shared-key: cache-${{ hashFiles('**/Cargo.lock') }} | ||
cache-on-failure: true | ||
|
||
- name: cargo test | ||
run: RUST_LOG=info cargo test --all --all-features -- --nocapture |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.