Skip to content

Commit c53e020

Browse files
committed
Update libprio-rs dependency to version 0.8.0.
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
1 parent 954a1dd commit c53e020

18 files changed

+1248
-1094
lines changed

Cargo.lock

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

db/schema.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ CREATE TABLE task_hpke_keys(
4343
CONSTRAINT fk_task_id FOREIGN KEY(task_id) REFERENCES tasks(id)
4444
);
4545

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

53-
CONSTRAINT vdaf_verify_param_unique_task_id UNIQUE(task_id),
53+
CONSTRAINT vdaf_verify_key_unique_task_id UNIQUE(task_id),
5454
CONSTRAINT fk_task_id FOREIGN KEY(task_id) REFERENCES tasks(id)
5555
);
5656

janus/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ chrono = "0.4"
1212
hex = "0.4.3"
1313
hpke-dispatch = "0.3.0"
1414
num_enum = "0.5.6"
15-
prio = "0.7.1"
15+
prio = "0.8.0"
1616
rand = "0.8"
1717
ring = "0.16.20"
1818
serde = { version = "1.0.137", features = ["derive"] }

janus_server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ opentelemetry-otlp = { version = "0.10.0", optional = true, features = ["metrics
3434
opentelemetry-prometheus = { version = "0.10.0", optional = true }
3535
opentelemetry-semantic-conventions = { version = "0.9.0", optional = true }
3636
postgres-types = { version = "0.2.3", features = ["derive", "array-impls"] }
37-
prio = "0.7.1"
37+
prio = "0.8.0"
3838
prometheus = { version = "0.13.1", optional = true }
3939
rand = "0.8"
4040
reqwest = { version = "0.11.4", default-features = false, features = ["rustls-tls", "json"] }

0 commit comments

Comments
 (0)