Skip to content
Open

Zkps #24

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "libpep"
edition = "2021"
version = "0.12.0"
version = "0.13.0"
authors = ["Bernard van Gastel <bvgastel@bitpowder.com>", "Job Doesburg <job@jobdoesburg.nl>"]
homepage = "https://github.com/NOLAI/libpep"
repository = "https://github.com/NOLAI/libpep"
Expand All @@ -13,8 +13,10 @@ description = "Library for polymorphic encryption and pseudonymization"
readme = "README.md"

[features]
default = ["build-binary", "long", "offline", "batch", "serde", "json"]
serde = ["dep:serde"] # For (de)serialization support via Serde
default = ["build-binary", "long", "offline", "batch", "serde", "json", "verifiable"]
serde = ["dep:serde", "dep:serde_json"] # For (de)serialization support via Serde
verifiable = [] # Enable verifiable operations with zero-knowledge proofs
verifiable-derivation = ["verifiable"] # Enable Carter-Wegman verifiable factor derivation (O(1) storage vs O(n))
elgamal3 = [] # For ElGamal triple encryption, including the recipient's public key in message encoding
offline = [] # For encryption towards global keys (instead of encryption with session keys)
batch = [] # For batch transcryption with reordering to prevent linkability
Expand Down Expand Up @@ -87,6 +89,10 @@ harness = false
name = "energy_distributed"
harness = false

[[bench]]
name = "verifiable"
harness = false

[package.metadata.deb]
name = "peppy"
depends = ""
Expand Down
1 change: 1 addition & 0 deletions benches/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,5 @@ criterion_group!(
bench_rsk2,
bench_rrsk2
);

criterion_main!(benches);
344 changes: 329 additions & 15 deletions benches/distributed.rs

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion benches/energy_distributed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ fn main() {

bench.benchmark(metadata, &|| {
process_entities_individually(
&entities, &systems, &domain_a, &domain_b, &session_a, &session_b,
&entities, &systems, &client_a, &domain_a, &domain_b, &session_a,
&session_b,
);
Ok::<_, ()>(())
});
Expand All @@ -71,6 +72,7 @@ fn main() {
}

// Benchmark distributed transcrypt with batch operations
#[cfg(feature = "batch")]
for num_servers in BENCHMARK_SERVERS {
for num_entities in BENCHMARK_ENTITIES {
for (num_pseudonyms_per_entity, num_attributes_per_entity) in BENCHMARK_STRUCTURES {
Expand All @@ -97,6 +99,7 @@ fn main() {
process_entities_batch(
encrypted_data.clone(),
&systems,
&client_a,
&domain_a,
&domain_b,
&session_a,
Expand Down
Loading
Loading