Compute
Perform single or multi party computation using secrets stored in the network.
π Single Party Examples
π Multi Party Examples
π Millionaires Problem
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.
- Client code
- Nada program
loading...
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.
- README
- Config file
- Step 1
- Step 2
- Step 3
loading...
loading...
Step 1: 1st Party Stores a Secretβ
loading...
Step 2: N other parties store a permissioned secretβ
loading...
Step 3: The 1st Party computes with all secretsβ
loading...