Skip to main content

FBPCS (Facebook Private Computation Service)

Secure multi-party computation (also known as secure computation, multi-party computation (MPC), or privacy-preserving computation) is a subfield of cryptography with the goal of creating methods for parties to jointly compute a function over their inputs while keeping those inputs private.

FBPCS (Facebook Private Computation Service) is a secure, privacy safe and scalable architecture to deploy MPC (Multi Party Computation) applications in a distributed way on virtual private clouds. FBPCF (Facebook Private Computation Framework) is for scaling MPC computation up via threading, while FBPCS is for scaling MPC computation out via Private Scaling architecture. FBPCS consists of various services, interfaces that enable various private measurement solutions, e.g. Private Lift.

Private Scaling resembles the map/reduce architecture and is secure against a semi-honest adversary who tries to learn the inputs of the computation. The goal is to secure the intermediate output of each shard to prevent potential privacy leak.

Installation Requirements:

Prerequisites for working on Ubuntu 18.04:

  • An AWS account (Access Key ID, Secret Access Key) to use AWS SDK (boto3 API) in FBPCS
  • python >= 3.8
  • python3-pip

Installing prerequisites on Ubuntu 18.04:

  • python3.8
sudo apt-get install -y python3.8
  • python3-pip
sudo apt-get install -y python3-pip

Installing fbpcs

python3.8 -m pip install 'git+https://github.com/facebookresearch/FBPCS.git'
# (add --user if you don't have permission)

# Or, to install it from a local clone:
git clone https://github.com/facebookresearch/FBPCS.git
python3.8 -m pip install -e FBPCS
# (add --user if you don't have permission)

# Or, to install it from Pypi
python3.8 -m pip install fbpcs

Upgrading fbpcs

  • To latest version in github main branch
python3.8 -m pip uninstall fbpcs
# uninstall fbpcs first

python3.8 -m pip install 'git+https://github.com/facebookresearch/FBPCS.git'
# (add --user if you don't have permission)
# re-install fbpcs from github repository
  • To latest version in Pypi
python3.8 -m pip install fbpcs --upgrade

Architecture

Figure 1: Architecture of FBPCS

Services:

  • MPCService is the public interface that provides APIs to distribute a MPC application with large dataset to multiple MPC workers on cloud.

Other components

Join the FBPCS community

License

FBPCS is MIT licensed, as found in the LICENSE file.

Metadata

Release files for fbpcs 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fbpcs 0.4.0
File Size Uploaded Provenance Actions
fbpcs-0.4.0.tar.gz 22.1 kB Without provenance Details for fbpcs-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fbpcs 0.4.0
File Interpreter ABI Platform Actions
fbpcs-0.4.0-py3-none-any.whl Python 3 none any Details for fbpcs-0.4.0-py3-none-any.whl

Total release size: 63.7 kB

Release files / fbpcs-0.4.0.tar.gz

Download URL fbpcs-0.4.0.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4d0a0bf1d81ff9d8a31aef96e97fa498d7a7b278909942de030978d7dd62671f
BLAKE2b-256 checksum
How to use checksums
73844dc30b7d92e1302f163d6f66fda229e2784dad48db32371d598cc7b30329
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Release files / fbpcs-0.4.0-py3-none-any.whl

Download URL fbpcs-0.4.0-py3-none-any.whl
Size 41.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cefe91e37e202c4028e7fad2fedb47b6b24b98f8d672a1b8f8c08ea0a8edb72
BLAKE2b-256 checksum
How to use checksums
420a06bdefc01025233451166b2c673d1d880a070734ffdbdcc5b25e3e9ad82c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Security for fbpcs 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page