Skip to content

Commit 93afc99

Browse files
authored
Release v0.3.0 (#80)
* Release v0.3.0 * fmt
1 parent 3b88b97 commit 93afc99

File tree

6 files changed

+41
-23
lines changed

6 files changed

+41
-23
lines changed

CHANGELOG.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
# CHANGELOG
2+
13
## Pending
2-
- MarlinPC's `supported_degree` fix.
34

45
### Breaking changes
56

@@ -8,3 +9,19 @@
89
### Improvements
910

1011
### Bug fixes
12+
13+
## v0.3.0
14+
15+
### Breaking changes
16+
17+
- [\#78](https://github.com/arkworks-rs/poly-commit/pull/78) Fix MarlinPC's CommitterKey to return the correct `supported_degree`.
18+
19+
### Features
20+
21+
### Improvements
22+
23+
### Bug fixes
24+
25+
## v0.2.0
26+
27+
- initial release of `ark-poly-commit`.

Cargo.toml

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ark-poly-commit"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
authors = [
55
"Alessandro Chiesa <[email protected]>",
66
"Mary Maller <[email protected]>",
@@ -21,15 +21,15 @@ license = "MIT/Apache-2.0"
2121
edition = "2018"
2222

2323
[dependencies]
24-
ark-serialize = { version = "^0.2.0", default-features = false, features = [ "derive" ] }
25-
ark-ff = { version = "^0.2.0", default-features = false }
26-
ark-ec = { version = "^0.2.0", default-features = false }
27-
ark-poly = {version = "^0.2.0", default-features = false }
24+
ark-serialize = { version = "^0.3.0", default-features = false, features = [ "derive" ] }
25+
ark-ff = { version = "^0.3.0", default-features = false }
26+
ark-ec = { version = "^0.3.0", default-features = false }
27+
ark-poly = {version = "^0.3.0", default-features = false }
2828

29-
ark-std = { version = "^0.2.0", default-features = false }
30-
ark-relations = { version = "^0.2.0", default-features = false, optional = true }
31-
ark-r1cs-std = { version = "^0.2.0", default-features = false, optional = true }
32-
ark-nonnative-field = { version = "^0.2.0", default-features = false, optional = true }
29+
ark-std = { version = "^0.3.0", default-features = false }
30+
ark-relations = { version = "^0.3.0", default-features = false, optional = true }
31+
ark-r1cs-std = { version = "^0.3.0", default-features = false, optional = true }
32+
ark-nonnative-field = { version = "^0.3.0", default-features = false, optional = true }
3333
hashbrown = { version = "0.9", optional = true }
3434

3535
digest = "0.9"
@@ -39,9 +39,9 @@ derivative = { version = "2", features = [ "use_core" ] }
3939
tracing = { version = "0.1", default-features = false, features = [ "attributes" ] }
4040

4141
[dev-dependencies]
42-
ark-ed-on-bls12-381 = { version = "^0.2.0", default-features = false }
43-
ark-bls12-381 = { version = "^0.2.0", default-features = false, features = [ "curve" ] }
44-
ark-bls12-377 = { version = "^0.2.0", default-features = false, features = [ "curve" ] }
42+
ark-ed-on-bls12-381 = { version = "^0.3.0", default-features = false }
43+
ark-bls12-381 = { version = "^0.3.0", default-features = false, features = [ "curve" ] }
44+
ark-bls12-377 = { version = "^0.3.0", default-features = false, features = [ "curve" ] }
4545
blake2 = { version = "0.9", default-features = false }
4646

4747
[profile.release]

src/ipa_pc/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ impl<G: AffineCurve, D: Digest, P: UVPolynomial<G::ScalarField>> InnerProductArg
149149

150150
let h_prime = vk.h.mul(round_challenge);
151151

152-
let mut round_commitment_proj = combined_commitment_proj + &h_prime.mul(combined_v.into());
152+
let mut round_commitment_proj =
153+
combined_commitment_proj + &h_prime.mul(&combined_v.into_repr());
153154

154155
let l_iter = proof.l_vec.iter();
155156
let r_iter = proof.r_vec.iter();

src/kzg10/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ where
344344
if let Some(random_v) = proof.random_v {
345345
gamma_g_multiplier += &(randomizer * &random_v);
346346
}
347-
total_c += &c.mul(randomizer.into());
348-
total_w += &w.mul(randomizer);
347+
total_c += &c.mul(randomizer.into_repr());
348+
total_w += &w.mul(randomizer.into_repr());
349349
// We don't need to sample randomizers from the full field,
350350
// only from 128-bit strings.
351351
randomizer = u128::rand(rng).into();

src/marlin/marlin_pst13_pc/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ where
255255
.collect();
256256
let beta_h: Vec<_> = betas
257257
.iter()
258-
.map(|b| h.mul((*b).into()).into_affine())
258+
.map(|b| h.mul(&(*b).into_repr()).into_affine())
259259
.collect();
260260
let h = h.into_affine();
261261
let prepared_h = h.into();
@@ -628,16 +628,16 @@ where
628628
if let Some(random_v) = proof.random_v {
629629
gamma_g_multiplier += &(randomizer * &random_v);
630630
}
631-
total_c += &c.mul(randomizer.into());
631+
total_c += &c.mul(&randomizer.into_repr());
632632
ark_std::cfg_iter_mut!(total_w)
633633
.enumerate()
634634
.for_each(|(i, w_i)| *w_i += &w[i].mul(randomizer));
635635
// We don't need to sample randomizers from the full field,
636636
// only from 128-bit strings.
637637
randomizer = u128::rand(rng).into();
638638
}
639-
total_c -= &g.mul(g_multiplier.into());
640-
total_c -= &gamma_g.mul(gamma_g_multiplier.into());
639+
total_c -= &g.mul(&g_multiplier.into_repr());
640+
total_c -= &gamma_g.mul(&gamma_g_multiplier.into_repr());
641641
end_timer!(combination_time);
642642

643643
let to_affine_time = start_timer!(|| "Converting results to affine for pairing");

src/sonic_pc/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{LabeledCommitment, LabeledPolynomial, LinearCombination};
55
use crate::{PCRandomness, PCUniversalParams, PolynomialCommitment};
66

77
use ark_ec::{AffineCurve, PairingEngine, ProjectiveCurve};
8-
use ark_ff::{One, UniformRand, Zero};
8+
use ark_ff::{One, PrimeField, UniformRand, Zero};
99
use ark_std::rand::RngCore;
1010
use ark_std::{convert::TryInto, marker::PhantomData, ops::Div, vec};
1111

@@ -60,7 +60,7 @@ impl<E: PairingEngine, P: UVPolynomial<E::Fr>> SonicKZG10<E, P> {
6060
let mut comm_with_challenge: E::G1Projective = comm.0.mul(curr_challenge);
6161

6262
if let Some(randomizer) = randomizer {
63-
comm_with_challenge = comm_with_challenge.mul(randomizer.into());
63+
comm_with_challenge = comm_with_challenge.mul(&randomizer.into_repr());
6464
}
6565

6666
// Accumulate values in the BTreeMap
@@ -80,7 +80,7 @@ impl<E: PairingEngine, P: UVPolynomial<E::Fr>> SonicKZG10<E, P> {
8080

8181
if let Some(randomizer) = randomizer {
8282
witness = proof.w.mul(randomizer);
83-
adjusted_witness = adjusted_witness.mul(randomizer.into());
83+
adjusted_witness = adjusted_witness.mul(&randomizer.into_repr());
8484
}
8585

8686
*combined_witness += &witness;

0 commit comments

Comments
 (0)