-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.0.4' into main
- Loading branch information
Showing
24 changed files
with
1,494 additions
and
686 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
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
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,14 +1,14 @@ | ||
[package] | ||
name = "bulletproofs" | ||
version = "1.0.2" | ||
version = "1.0.4" | ||
authors = ["Cathie Yun <[email protected]>", | ||
"Henry de Valence <[email protected]>", | ||
"Oleg Andreev <[email protected]>"] | ||
readme = "README.md" | ||
license = "MIT" | ||
repository = "https://github.com/dalek-cryptography/bulletproofs" | ||
categories = ["cryptography"] | ||
keywords = ["cryptography", "ristretto", "zero-knowledge", "bulletproofs"] | ||
keywords = ["cryptography", "crypto", "ristretto", "zero-knowledge", "bulletproofs"] | ||
description = "A pure-Rust implementation of Bulletproofs using Ristretto" | ||
|
||
[dependencies] | ||
|
@@ -32,8 +32,11 @@ rand_chacha = "0.1" | |
|
||
[features] | ||
avx2_backend = ["curve25519-dalek/avx2_backend"] | ||
# Disable the yoloproofs feature for the released crate, so that it's not possible for someone to publish a crate using R1CS proofs yet. | ||
# yoloproofs = [] | ||
# Disable the yoloproofs feature in the released crate. | ||
# To test it, use a git dependency on the develop branch and enable the | ||
# yoloproofs feature. Note that this means it's impossible to publish a crate | ||
# depending on the unstable R1CS API. | ||
#yoloproofs = [] | ||
|
||
[[test]] | ||
name = "range_proof" | ||
|
@@ -46,6 +49,10 @@ required-features = ["yoloproofs"] | |
name = "range_proof" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "generators" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "r1cs" | ||
harness = false | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
extern crate bulletproofs; | ||
use bulletproofs::{BulletproofGens, PedersenGens}; | ||
|
||
#[macro_use] | ||
extern crate criterion; | ||
use criterion::Criterion; | ||
|
||
fn pc_gens(c: &mut Criterion) { | ||
c.bench_function("PedersenGens::new", |b| b.iter(|| PedersenGens::default())); | ||
} | ||
|
||
fn bp_gens(c: &mut Criterion) { | ||
c.bench_function_over_inputs( | ||
"BulletproofGens::new", | ||
|b, size| b.iter(|| BulletproofGens::new(*size, 1)), | ||
(0..10).map(|i| 2 << i), | ||
); | ||
} | ||
|
||
criterion_group! { | ||
bp, | ||
bp_gens, | ||
pc_gens, | ||
} | ||
|
||
criterion_main!(bp); |
Oops, something went wrong.