#aggregation #private #aggregate #computation #scalable #distributed #robust

prio

Implementation of the Prio aggregation system core: https://crypto.stanford.edu/prio/

41 releases

new 0.16.3 Apr 25, 2024
0.16.2 Mar 19, 2024
0.16.1 Feb 22, 2024
0.15.3 Oct 3, 2023
0.2.0 Oct 1, 2020

#52 in Cryptography

Download history 817/week @ 2024-01-03 924/week @ 2024-01-10 1804/week @ 2024-01-17 2148/week @ 2024-01-24 2159/week @ 2024-01-31 1659/week @ 2024-02-07 1649/week @ 2024-02-14 2485/week @ 2024-02-21 1873/week @ 2024-02-28 2026/week @ 2024-03-06 2701/week @ 2024-03-13 2439/week @ 2024-03-20 2190/week @ 2024-03-27 2234/week @ 2024-04-03 1477/week @ 2024-04-10 933/week @ 2024-04-17

7,044 downloads per month
Used in 8 crates (6 directly)

MPL-2.0 license

750KB
16K SLoC

libprio-rs

Latest Version Docs badge

Pure Rust implementation of Prio, a system for Private, Robust, and Scalable Computation of Aggregate Statistics.

Exposure Notifications Private Analytics

This crate was used in the Exposure Notifications Private Analytics system. This is referred to in various places as Prio v2. See prio-server or the ENPA whitepaper for more details.

Verifiable Distributed Aggregation Function

This crate also implements a Verifiable Distributed Aggregation Function (VDAF) called "Prio3", implemented in the vdaf module, allowing Prio to be used in the Distributed Aggregation Protocol protocol being developed in the PPM working group at the IETF. This support is still evolving along with the DAP and VDAF specifications.

Draft versions and release branches

The main branch is under continuous development and will usually be partway between VDAF drafts. libprio uses stable release branches to maintain implementations of different VDAF draft versions. Crate prio version x.y.z is released from a corresponding release/x.y branch. We try to maintain Rust SemVer compatibility, meaning that API breaks only happen on minor version increases (e.g., 0.10 to 0.11).

Crate version Git branch VDAF draft version DAP draft version Conforms to specification? Status
0.8 release/0.8 draft-irtf-cfrg-vdaf-01 draft-ietf-ppm-dap-01 Yes Unmaintained as of March 28, 2023
0.9 release/0.9 draft-irtf-cfrg-vdaf-03 draft-ietf-ppm-dap-02 and draft-ietf-ppm-dap-03 Yes Unmaintained as of September 22, 2022
0.10 release/0.10 draft-irtf-cfrg-vdaf-03 draft-ietf-ppm-dap-02 and draft-ietf-ppm-dap-03 Yes Unmaintained as of November 14, 2023
0.11 release/0.11 draft-irtf-cfrg-vdaf-04 N/A Yes Unmaintained
0.12 release/0.12 draft-irtf-cfrg-vdaf-05 draft-ietf-ppm-dap-04 Yes Supported
0.13 release/0.13 draft-irtf-cfrg-vdaf-06 draft-ietf-ppm-dap-05 Yes Unmaintained
0.14 release/0.14 draft-irtf-cfrg-vdaf-06 draft-ietf-ppm-dap-05 Yes Unmaintained
0.15 release/0.15 draft-irtf-cfrg-vdaf-07 draft-ietf-ppm-dap-07 Yes Supported
0.16 main draft-irtf-cfrg-vdaf-08 draft-ietf-ppm-dap-09 Yes Supported

Cargo Features

This crate defines the following feature flags:

Name Default feature? Description Semver stable?
crypto-dependencies Yes Enables dependencies on various RustCrypto crates, and uses them to implement XofTurboShake128 to support VDAFs.
experimental No Certain experimental APIs are guarded by this feature.
multithreaded No Enables certain Prio3 VDAF implementations that use rayon for parallelization of gadget evaluations.
test-util No Enables test utilities for VDAF users and VDAF implementers.

Features that are not marked as "Semver stable" may undergo breaking changes in future patch releases, as an exception to semantic versioning.

Dependencies

~2–5MB
~91K SLoC