Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update strobe, bump crate versions #388

Merged
merged 1 commit into from
Oct 11, 2024
Merged
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
4 changes: 2 additions & 2 deletions adss/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "adss"
version = "0.2.2"
version = "0.2.3"
authors = ["eV <[email protected]>", "Alex Davidson <[email protected]>"]
description = "Adept Secret Sharing framework"
documentation = "https://docs.rs/adss"
Expand All @@ -11,7 +11,7 @@ license = "MPL-2.0"
edition = "2018"

[dependencies]
strobe-rs = "0.8.1"
strobe-rs = "0.10.0"
rand = "0.8.5"
rand_core = "0.6.4"
zeroize = "1.5.5"
Expand Down
4 changes: 2 additions & 2 deletions adss/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ impl Commune {
self.M.clone()
}

fn verify(&self, J: &mut [u8]) -> Result<(), Box<dyn Error>> {
fn verify(&self, J: &[u8; MAC_LENGTH]) -> Result<(), Box<dyn Error>> {
let mut transcript = self
.clone()
.T
Expand Down Expand Up @@ -323,7 +323,7 @@ where
T: None,
};

c.verify(&mut s.J.clone())?;
c.verify(&s.J.clone())?;
Ok(c)
}

Expand Down
4 changes: 2 additions & 2 deletions ppoprf/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ppoprf"
version = "0.4.0"
version = "0.4.1"
authors = ["Alex Davidson <[email protected]>", "Ralph Ankele <[email protected]>"]
description = "Puncturable Partially-Oblivious Pseudo-Random Function"
documentation = "https://docs.rs/ppoprf"
Expand All @@ -15,7 +15,7 @@ rand = { version = "0.8.5", features = [ "getrandom" ] }
bitvec = { version = "1.0.1", features = ["serde"] }
curve25519-dalek = { version = "4.0.0", features = [ "rand_core", "serde" ] }
serde = { version = "1.0.147", features = ["derive"] }
strobe-rs = "0.8.1"
strobe-rs = "0.10.0"
base64 = "0.13.0"
bincode = "1.3.3"
derive_more = "0.99"
Expand Down
8 changes: 4 additions & 4 deletions star/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sta-rs"
version = "0.3.0"
version = "0.3.1"
authors = ["Alex Davidson <[email protected]>"]
description = "Distributed Secret-Sharing for Threshold Aggregation Reporting"
documentation = "https://docs.rs/sta-rs"
Expand All @@ -11,9 +11,9 @@ license = "MPL-2.0"
edition = "2018"

[dependencies]
strobe-rs = "0.8.1"
adss = { path = "../adss", version = "0.2.2" }
ppoprf = { path = "../ppoprf", version = "0.4.0" }
strobe-rs = "0.10.0"
adss = { path = "../adss", version = "0.2.3" }
ppoprf = { path = "../ppoprf", version = "0.4.1" }
rand = "0.8.5"
rand_core = "0.6.4"
zeroize = "1.5.5"
Expand Down
2 changes: 1 addition & 1 deletion star/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fn benchmark_end_to_end(c: &mut Criterion) {
].iter().for_each(|params| {
let epoch = "t";
let messages = get_messages(params, epoch);
group.bench_function(&format!("E2E server (n={}, s={}, clients={}, threshold={}, local_randomness={}, aux_data={})", params.n, params.s, params.clients, params.threshold, params.local, params.aux_data), |b| {
group.bench_function(format!("E2E server (n={}, s={}, clients={}, threshold={}, local_randomness={}, aux_data={})", params.n, params.s, params.clients, params.threshold, params.local, params.aux_data), |b| {
let agg_server = AggregationServer::new(params.threshold, epoch);
b.iter(|| {
let _o = agg_server.retrieve_outputs(&messages);
Expand Down
2 changes: 1 addition & 1 deletion star/test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
strobe-rs = "0.8.1"
strobe-rs = "0.10.0"
sta-rs = { path = "../" }
rand = { version = "0.8.5", features = [ "std" ] }
rayon = "1.7"
Expand Down
Loading