Skip to content

Commit b5a33d9

Browse files
committed
Merge branch 'release/1.0.4' into main
2 parents 6a17ceb + 4ff5253 commit b5a33d9

24 files changed

+1494
-686
lines changed

.travis.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
language: rust
22
cache: cargo
33

4-
rust:
5-
- nightly
6-
74
env:
85
- TEST_COMMAND=test EXTRA_FLAGS='' FEATURES=''
9-
# Disabled for now along with the yoloproofs feature.
10-
#- TEST_COMMAND=test EXTRA_FLAGS='' FEATURES='yoloproofs'
6+
- TEST_COMMAND=test EXTRA_FLAGS='' FEATURES='yoloproofs'
117
# run cargo bench with a filter that matches no benchmarks.
128
# this ensures the benchmarks build but doesn't run them on the CI server.
139
- TEST_COMMAND=bench EXTRA_FLAGS='"DONTRUNBENCHMARKS"' FEATURES=''
1410

1511
matrix:
12+
fast_finish: true
1613
include:
17-
- rust: nightly-2018-12-04
1814
before_script:
1915
- rustup component add rustfmt-preview
2016
script:

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
Entries are listed in reverse chronological order.
44

5+
## 1.0.4
6+
7+
* Change doc-include paths to allow compilation on the latest Rust nightly
8+
(which changed the path root).
9+
* Various changes to the (unreleased, unstable) R1CS implementation, which is
10+
disabled in the released version of the code.
11+
12+
## 1.0.3
13+
14+
* Mistakes were made. Yanked and replaced by 1.0.4 above.
15+
516
## 1.0.2
617

718
* Updates the library to use the renamed functions in Merlin 1.1.

Cargo.toml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "bulletproofs"
3-
version = "1.0.2"
3+
version = "1.0.4"
44
authors = ["Cathie Yun <[email protected]>",
55
"Henry de Valence <[email protected]>",
66
"Oleg Andreev <[email protected]>"]
77
readme = "README.md"
88
license = "MIT"
99
repository = "https://github.com/dalek-cryptography/bulletproofs"
1010
categories = ["cryptography"]
11-
keywords = ["cryptography", "ristretto", "zero-knowledge", "bulletproofs"]
11+
keywords = ["cryptography", "crypto", "ristretto", "zero-knowledge", "bulletproofs"]
1212
description = "A pure-Rust implementation of Bulletproofs using Ristretto"
1313

1414
[dependencies]
@@ -32,8 +32,11 @@ rand_chacha = "0.1"
3232

3333
[features]
3434
avx2_backend = ["curve25519-dalek/avx2_backend"]
35-
# Disable the yoloproofs feature for the released crate, so that it's not possible for someone to publish a crate using R1CS proofs yet.
36-
# yoloproofs = []
35+
# Disable the yoloproofs feature in the released crate.
36+
# To test it, use a git dependency on the develop branch and enable the
37+
# yoloproofs feature. Note that this means it's impossible to publish a crate
38+
# depending on the unstable R1CS API.
39+
#yoloproofs = []
3740

3841
[[test]]
3942
name = "range_proof"
@@ -46,6 +49,10 @@ required-features = ["yoloproofs"]
4649
name = "range_proof"
4750
harness = false
4851

52+
[[bench]]
53+
name = "generators"
54+
harness = false
55+
4956
[[bench]]
5057
name = "r1cs"
5158
harness = false

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FEATURES :=
1+
FEATURES := yoloproofs
22

33
doc:
44
cargo rustdoc --features "$(FEATURES)" -- --html-in-header docs/assets/rustdoc-include-katex-header.html

benches/generators.rs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
extern crate bulletproofs;
2+
use bulletproofs::{BulletproofGens, PedersenGens};
3+
4+
#[macro_use]
5+
extern crate criterion;
6+
use criterion::Criterion;
7+
8+
fn pc_gens(c: &mut Criterion) {
9+
c.bench_function("PedersenGens::new", |b| b.iter(|| PedersenGens::default()));
10+
}
11+
12+
fn bp_gens(c: &mut Criterion) {
13+
c.bench_function_over_inputs(
14+
"BulletproofGens::new",
15+
|b, size| b.iter(|| BulletproofGens::new(*size, 1)),
16+
(0..10).map(|i| 2 << i),
17+
);
18+
}
19+
20+
criterion_group! {
21+
bp,
22+
bp_gens,
23+
pc_gens,
24+
}
25+
26+
criterion_main!(bp);

0 commit comments

Comments
 (0)