This documentation is for an old version of OpenDP.

The current release of OpenDP is v0.11.1.

API User Guide#

This user guide gives a top-down picture of OpenDP; it complements the bottom-up view provided by the Python API Reference.

Feature Listing#

Features can be enabled via the following syntax:

import opendp.prelude as dp
dp.enable_features("contrib")
library(opendp)
enable_features("contrib")

Edit the dependency on OpenDP in your Cargo.toml:

opendp = { features = ["contrib"] }

Features that are available from Python and R:

Name

Description

contrib

Enable to include constructors that have not passed the vetting process.

honest-but-curious

Enable to include constructors whose differential privacy (or stability) properties rely on the constructor arguments being correct. That is, if a user/adversary is ‘honest’ in specifying the constructor arguments, then even if they later become ‘curious’ and try to learn something from the measurement outputs, they will not be able to violate the differential privacy promises of the measurement.

floating-point

Enable to include transformations and measurements with floating-point vulnerabilities.

rust-stack-trace

Enable to allow stack traces to include stack frames from Rust.

See also the comprehensive listing of features for Rust.