Skip to content

Commit

Permalink
Release v0.3.0 (#49)
Browse files Browse the repository at this point in the history
* Release v0.3.0

* update the CHANGELOG

* add the PR template

* update no_std check in CI

use `aarch64-unknown-none` env instead

* separate the benches

Co-authored-by: Tom Shen <[email protected]>
  • Loading branch information
weikengchen and tsunrise authored Jun 7, 2021
1 parent 6a9810d commit 3d5c532
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 38 deletions.
26 changes: 26 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for creating a PR! ✰
v Before hitting that submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->

## Description

<!-- Add a description of the changes that this PR introduces and the files that
are the most critical to review.
-->

closes: #XXXX

---

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

- [ ] Targeted PR against correct branch (master)
- [ ] Linked to Github issue with discussion and accepted design OR have an explanation in the PR that describes this work.
- [ ] Wrote unit tests
- [ ] Updated relevant documentation in the code
- [ ] Added a relevant changelog entry to the `Pending` section in `CHANGELOG.md`
- [ ] Re-reviewed `Files changed` in the Github PR explorer
26 changes: 16 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,22 @@ jobs:
target: thumbv6m-none-eabi
override: true

- name: Build
uses: actions-rs/cargo@v1
- name: Install Rust ARM64 (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
with:
use-cross: true
command: build
args: --no-default-features --target thumbv6m-none-eabi
toolchain: stable
target: aarch64-unknown-none
override: true

- name: Check
uses: actions-rs/cargo@v1
- uses: actions/cache@v2
with:
use-cross: true
command: check
args: --examples --no-default-features --target thumbv6m-none-eabi
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: ark-linear-sumcheck
run: |
cargo build --no-default-features --target aarch64-unknown-none
cargo check --examples --no-default-features --target aarch64-unknown-none
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/sumcheck-benches/target
/target
Cargo.lock
/.idea
25 changes: 20 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# CHANGELOG

## Pending

### Breaking changes

### Features

### Improvements

### Bug fixes

## v0.3.0

- Change dependency to version `0.3.0` of other arkworks-rs crates.

## v0.2.0

The main feature of this release are:
Expand All @@ -6,13 +22,12 @@ The main feature of this release are:

### Breaking Changes

- #46 Update to hashbrown version 0.11.2
- #41 `ListOfProductsOfPolynomial::add_product` takes iterators of `Rc<DenseMultilinearExtension<F>>` instead of `DenseMultilinearExtension<F>`.
- #41 `ListOfProductsOfPolynomial` has been moved to `ml_sumcheck::data_structures`, but no actions required.
- [\#41](https://github.com/arkworks-rs/sumcheck/pull/41) `ListOfProductsOfPolynomial::add_product` takes iterators of `Rc<DenseMultilinearExtension<F>>` instead of `DenseMultilinearExtension<F>`.
- [\#41](https://github.com/arkworks-rs/sumcheck/pull/41) `ListOfProductsOfPolynomial` has been moved to `ml_sumcheck::data_structures`, but no actions required.
- [\#46](https://github.com/arkworks-rs/sumcheck/pull/46) Update to hashbrown version 0.11.2.

### Features


### Improvements

- #41 `MLSumcheck` Prover uses memory linear to number of unique multilinear extensions instead of total number of multiplicands.
- [\#41](https://github.com/arkworks-rs/sumcheck/pull/41) `MLSumcheck` Prover uses memory linear to number of unique multilinear extensions instead of total number of multiplicands.
28 changes: 6 additions & 22 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ark-linear-sumcheck"
version = "0.2.0"
version = "0.3.0"
authors = [
"Tom Shen <[email protected]>",
"arkworks contributors"
Expand All @@ -14,35 +14,19 @@ include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
license = "MIT/Apache-2.0"
edition = "2018"


[dependencies]
ark-ff = { version = "^0.2.0", default-features = false }
ark-serialize = { version = "^0.2.0", default-features = false, features = ["derive"] }
ark-ff = { version = "^0.3.0", default-features = false }
ark-serialize = { version = "^0.3.0", default-features = false, features = ["derive"] }
ark-std = { version = "^0.3.0", default-features = false }
ark-poly = { version = "^0.3.0", default-features = false }
blake2 = { version = "0.9", default-features = false }
ark-std = { version = "^0.2.0", default-features = false }
hashbrown = { version = "0.11.2" }
ark-poly = { version = "^0.2.0", default-features = false}
rayon = { version = "1", optional = true }
criterion = {version = "0.3.1", optional = true}

[dev-dependencies]
ark-test-curves = { version = "^0.2.0", default-features = false, features = ["bls12_381_scalar_field", "bls12_381_curve"] }
ark-test-curves = { version = "^0.3.0", default-features = false, features = ["bls12_381_scalar_field", "bls12_381_curve"] }

[features]
default = ["std"]
std = ["ark-ff/std", "ark-serialize/std", "blake2/std", "ark-std/std", "ark-poly/std"]
parallel = ["std", "ark-ff/parallel", "ark-poly/parallel", "ark-std/parallel", "rayon"]
bench = ["criterion"]

[[bench]]
name = "ml_sumcheck"
path = "benches/ml_sumcheck_bench.rs"
harness = false

[[bench]]
name = "gkr_round_sumcheck"
path = "benches/gkr_round_sumcheck_bench.rs"
harness = false

[lib]
bench = false
2 changes: 1 addition & 1 deletion src/ml_sumcheck/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fn random_list_of_products<F: Field, R: RngCore>(
let mut sum = F::zero();
let mut poly = ListOfProductsOfPolynomials::new(nv);
for _ in 0..num_products {
let num_multiplicands = rng.gen_range(num_multiplicands_range.0, num_multiplicands_range.1);
let num_multiplicands = rng.gen_range(num_multiplicands_range.0..num_multiplicands_range.1);
let (product, product_sum) = random_product(nv, num_multiplicands, rng);
let coefficient = F::rand(rng);
poly.add_product(product.into_iter(), coefficient);
Expand Down
41 changes: 41 additions & 0 deletions sumcheck-benches/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[package]
name = "sumcheck-benches"
version = "0.3.0"
authors = [
"Tom Shen <[email protected]>",
"arkworks contributors"
]
description = "Benchmarks for ark-linear-sumcheck"
homepage = "https://arkworks.rs"
repository = "https://github.com/arkworks-rs/sumcheck/"
keywords = ["cryptography", "finite-fields", "polynomials", "sumcheck"]
categories = ["cryptography"]
include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
license = "MIT/Apache-2.0"
publish = false
edition = "2018"

[dependencies]
ark-ff = { version = "^0.3.0", default-features = false }
ark-std = { version = "^0.3.0", default-features = false }
ark-poly = { version = "^0.3.0", default-features = false }
ark-test-curves = { version = "^0.3.0", default-features = false, features = ["bls12_381_scalar_field", "bls12_381_curve"] }

criterion = { version = "0.3.1" }
ark-linear-sumcheck = { path = "../" }
rayon = { version = "1", optional = true }

[features]
default = [ "std" ]
std = ["ark-ff/std", "ark-std/std", "ark-poly/std"]
parallel = ["std", "ark-ff/parallel", "ark-poly/parallel", "ark-std/parallel", "rayon"]

[[bench]]
name = "ml_sumcheck"
path = "benches/ml_sumcheck_bench.rs"
harness = false

[[bench]]
name = "gkr_round_sumcheck"
path = "benches/gkr_round_sumcheck_bench.rs"
harness = false
File renamed without changes.
File renamed without changes.

0 comments on commit 3d5c532

Please sign in to comment.