Skip to main content

Compute

Perform single or multi party computation using secrets stored in the network.

Single Party Compute​

Single party compute involves only one Party that provides inputs and receives outputs of a program. Single party compute examples are available in the Python Starter Repo core_concept_single_party_compute folder.

Example: addition_simple.py​

The addition_simple example is a single party compute example that adds two secret integers. In the client code, the first secret integer is stored in the network ahead of time, and the second secret integer is provided at computation time.

examples_and_tutorials/core_concept_single_party_compute/addition_simple.py
loading...

Multi Party Compute​

Multi party compute involves more than one Party. These Parties collaborate to provide secret inputs and one Party receives outputs of the program.

The core_concept_multi_party_compute folder has a 3-step multi party compute example involving multiple parties providing secret inputs for computation of a program. The first party stores a secret, then N other parties store permissioned secrets giving the first party compute access. The first party computes with all secrets.

examples_and_tutorials/core_concept_multi_party_compute/README.md
loading...