Secure Multiparty Computation Explained: Computing in Private

Secure multiparty computation explained in plain terms means understanding how several people can compute an answer together without any of them revealing their private input, a trick that sounds impossible until you see how it works. The central question is how rivals can collaborate without trusting each other, and the answer is that the maths lets them share the computation instead of sharing the data.

Secure multiparty computation is a set of cryptographic protocols that lets a group of parties compute a function over their private inputs while keeping those inputs secret from each other. It was introduced by Andrew Yao in the early 1980s, formalised by Goldreich, Micali, and Wigderson in 1987, and it is built from garbled circuits, secret sharing, and oblivious transfer.

This article explains what secure multiparty computation is, how it works, and where it runs in the real world.

Key takeaways

  • Secure multiparty computation lets parties compute together privately.
  • No party learns another party’s private input.
  • It was introduced by Yao and formalised in 1987.
  • It is built from garbled circuits and secret sharing.
  • It already runs in auctions, statistics, and pay studies.

What secure multiparty computation is

Secure multiparty computation is a protocol that takes private inputs from several parties and returns a joint result, passing the data through encrypted shares that no single party can read alone. Each party splits its input into shares, the shares are combined through the computation, and the result is revealed while the inputs stay hidden.

Its signature feature is the guarantee itself. A secure protocol promises that each party learns nothing beyond the final answer and what it already knew, which means a hospital can join a study without exposing patient records, and a company can join an auction without exposing its bids, and that promise is enforced by maths rather than by trust.

The design was a reaction to a classic problem in cryptography. Yao’s millionaires’ problem asked how two rich people could learn who was richer without revealing their wealth, and the answer became the first secure computation protocol, which showed that privacy and collaboration were not opposites after all.

It became one of the best-known ideas in modern cryptography, and it moved from theory to practice in the 2000s. The first large deployment ran a sugar-beet auction in Denmark in 2008, where farmers bid without revealing their prices, and that auction proved the protocols were fast enough for real use.

Its most famous property is the breadth of what it can compute. Any function that can be written as a circuit can be computed securely, which means the technique is not limited to one trick, and that generality is why researchers keep finding new uses for it, from statistics to machine learning.

Our guide to AES encryption explains the cipher that protects data at rest, and our guide to Diffie-Hellman explains the key exchange that protects data in transit.

How secure multiparty computation works

Everything starts with secret sharing, which splits each input into pieces. A party divides its number into shares that look random on their own, sends one share to each other party, and keeps one for itself, which means no single party holds enough shares to reconstruct the input, and the secret is safe as long as not all the parties collude.

Each computation begins with garbled circuits, which encrypt the logic of the function. One party garbles the circuit by encrypting its truth tables, the others evaluate the garbled circuit with their keys, and the output emerges without anyone seeing the intermediate values, which is how the function runs without exposing its inputs.

Oblivious transfer is what makes the garbling work as a whole. It lets a party receive one of two keys without the sender learning which one was chosen, and because the receiver’s choice stays hidden, the evaluator can run the circuit without revealing its own input, and that hiding is the heart of the protocol.

The addition step shows how simple the arithmetic can be. When shares are added, each party adds its own shares locally, and the sum of the shares equals the share of the sum, which means addition needs no communication at all, and that efficiency is what makes secret-sharing protocols fast in practice.

The multiplication step is where the parties must talk. Multiplying shares needs an extra round of interaction, because the product of shares is not a share of the product, so the parties exchange masked values and combine them, which means multiplication costs more than addition, and protocol designers work hard to keep multiplications few.

The final result is revealed by combining the output shares. Each party sends its share of the result to the others, the shares are combined into the answer, and the inputs stay hidden, which means the computation delivers exactly what was promised and nothing more.

A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it
A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it, shows how secure multiparty computation works: shares take turns through garbled circuits, round after round, until a joint answer emerges.

Comparing secure multiparty computation with other privacy tools

Secure multiparty computation is one of several tools for computing on private data, and each was built with a different emphasis. Homomorphic encryption lets one party compute on encrypted data alone, zero-knowledge proofs let one party prove a fact without revealing it, and secure multiparty computation lets many parties compute together, while each approach trades something for something else.

The table below sets out the main contrasts between the leading approaches.

Aspect Secure multiparty computation Homomorphic encryption Zero-knowledge proofs
Parties Many One Two
Input privacy Yes Yes Yes
Communication High Low Medium
Speed Fast for simple functions Slow Fast for proofs
Best for Joint computation Outsourced computing Verification

The practical result is that secure multiparty computation is the right choice for joint computation, homomorphic encryption suits outsourced computing, and zero-knowledge proofs fit verification instead.

Where secure multiparty computation is used

Research uses it as a case study in private collaboration. Cryptographers still cite secure multiparty computation when they discuss how rivals can work together, because it is the clearest example of privacy without trust, and that lesson shapes how new protocols are judged today.

Teaching uses it to show how protocols are built. Secure multiparty computation is clean enough to explain in a lecture and well documented enough to implement in an afternoon, which makes it a favourite example in cryptography courses that cover the protocols of the modern era and the design ideas that shaped them.

Auctions use it to keep bids secret. The Danish sugar-beet auction of 2008 let farmers bid on contracts without revealing their prices to each other, and that deployment proved the protocols were ready for real markets, which is why auction designers still study it today.

Statistics use it to protect survey data. A pay-equity study in Boston used secure computation to compare salaries across employers without any employer revealing its own numbers, and that study showed the technique could answer sensitive questions that no single organisation could answer alone.

Machine learning uses it to train models on private data. Hospitals and banks now experiment with secure protocols that let them train shared models without pooling their records, which means the technique is moving from research papers into products, and that move is still accelerating.

Strengths and limits

The greatest strength of secure multiparty computation is its guarantee. A protocol that reveals nothing beyond the answer gives collaborators a promise that no contract can match, and that promise is real, proven in the security models of the field and confirmed by the deployments that rely on it.

It is also a strength that the technique is general. Any function that can be written as a circuit can be computed securely, which means the same tools serve auctions, statistics, and machine learning, and that generality is worth more than cleverness in a field where special cases usually mean special flaws.

The limits are real, though, and the biggest is communication. Secure protocols need many rounds of messages between the parties, which means slow networks and large computations can make them expensive, so a system with limited bandwidth will usually choose a simpler privacy tool instead.

Secure multiparty computation checklist

  • Use secure multiparty computation when parties must not see each other’s inputs.
  • Remember the guarantee covers inputs, not the final answer.
  • Study garbled circuits to understand the core technique.
  • Compare it with homomorphic encryption to see the trade-off.
  • Note its communication cost when planning deployments.
  • Test against published protocols before trusting any implementation.
  • Keep inputs private and protect them as carefully as with any secret.
  • Use a proper threat model, never assume all parties are honest.
  • Choose a simpler tool when the computation is small and public.

Frequently asked questions

What is secure multiparty computation in simple terms?

It is a set of protocols that lets several parties compute a joint answer from their private inputs, without any party learning what the others put in.

What is the millionaires’ problem?

It is Yao’s classic puzzle about two rich people learning who is richer without revealing their wealth, and it launched the whole field of secure computation.

How is it different from homomorphic encryption?

Both compute on private data, but secure multiparty computation splits the work among many parties, while homomorphic encryption lets one party compute alone on encrypted data.

Is secure multiparty computation used in practice?

Yes, it has run real auctions, pay-equity studies, and privacy-preserving statistics, and it is now being tested for collaborative machine learning.

What are garbled circuits?

They are encrypted versions of a computation’s logic, which one party builds and the others evaluate, so the function runs without exposing its inputs.

When should I use secure multiparty computation?

When several parties must collaborate without trusting each other, when the inputs are sensitive, or when the answer matters more than the data behind it.

The bottom line

Secure multiparty computation explained in one line is this: the art of computing together while keeping secrets, a set of protocols that lets rivals collaborate without trusting each other.

It is proof that privacy and cooperation can coexist, and the reason it still matters is that every privacy-preserving system designed since has been judged partly by the lesson secure multiparty computation taught.

This article is general information about how secure multiparty computation works, not advice about choosing encryption for a particular device or system.

Latest articles

Scroll to Top