Skip to content

Commit

Permalink
Update libprio-rs dependency to version 0.8.0. (#256)
Browse files Browse the repository at this point in the history
This version of libprio-rs implements draft-irtf-cfrg-vdaf-01, which is
the version we are targeting for interop tests.

This change is large but mostly-mechanical. A large number of line
changes are due to the new `L` const generic parameter to the VDAF
Aggregator trait.  This parameter is effectively the underlying PRG's
seed size.  Unfortunately, Rust currently doesn't allow const generic
parameters to be inferred; there is an open issue to resolve this, but
it doesn't appear to have received much attention thus far[1].

[1] rust-lang/rust#80528
  • Loading branch information
branlwyd authored Jun 21, 2022
1 parent a6b79c0 commit 9374954
Show file tree
Hide file tree
Showing 18 changed files with 1,270 additions and 1,109 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions db/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ CREATE TABLE task_hpke_keys(
CONSTRAINT fk_task_id FOREIGN KEY(task_id) REFERENCES tasks(id)
);

-- The VDAF verification parameters used by a given task.
-- The VDAF verification keys used by a given task.
-- TODO(#229): support multiple verification parameters per task
CREATE TABLE task_vdaf_verify_params(
CREATE TABLE task_vdaf_verify_keys(
id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, -- artificial ID, internal-only
task_id BIGINT NOT NULL, -- task ID the verification parameter is associated with
vdaf_verify_param BYTEA NOT NULL, -- the VDAF verification parameter (opaque VDAF message, encrypted)
task_id BIGINT NOT NULL, -- task ID the verification key is associated with
vdaf_verify_key BYTEA NOT NULL, -- the VDAF verification key (encrypted)

CONSTRAINT vdaf_verify_param_unique_task_id UNIQUE(task_id),
CONSTRAINT vdaf_verify_key_unique_task_id UNIQUE(task_id),
CONSTRAINT fk_task_id FOREIGN KEY(task_id) REFERENCES tasks(id)
);

Expand Down
2 changes: 1 addition & 1 deletion janus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ chrono = "0.4"
hex = "0.4.3"
hpke-dispatch = "0.3.0"
num_enum = "0.5.6"
prio = "0.7.1"
prio = "0.8.0"
rand = "0.8"
ring = "0.16.20"
serde = { version = "1.0.137", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion janus_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ opentelemetry-otlp = { version = "0.10.0", optional = true, features = ["metrics
opentelemetry-prometheus = { version = "0.10.0", optional = true }
opentelemetry-semantic-conventions = { version = "0.9.0", optional = true }
postgres-types = { version = "0.2.3", features = ["derive", "array-impls"] }
prio = "0.7.1"
prio = "0.8.0"
prometheus = { version = "0.13.1", optional = true }
rand = "0.8"
reqwest = { version = "0.11.4", default-features = false, features = ["rustls-tls", "json"] }
Expand Down
Loading

0 comments on commit 9374954

Please sign in to comment.