Tech●●●●●Difficulty 3 of 5

How can any 3 of 5 people unlock a secret with a curve drawn through points?

Hide a secret at the start of a curve, hand out points along it, and any three of five people can redraw the curve. Two cannot.

β–Ά Start the story

Shamir's secret sharing hides a secret in a curve. A straight line is pinned down by two points, a by three, a cubic curve by four, and so on: t points are enough to define a of degree t βˆ’ 1. So to share a secret among n people so that any t of them can open it, you build a polynomial of degree t βˆ’ 1 whose first is the secret and whose other coefficients are picked at random. Then you find n points on the curve and give one to each person.

When at least t people reveal their points, there is enough information to fit the curve through them, and its first is the secret. For 3 of 5, the curve is a , and any three of the five points pin it down. With only two points, plenty of parabolas fit, and each would point to a different secret. That is why the scheme has : even if an attacker steals some shares, it is impossible to reconstruct the secret unless they have stolen enough of them.

Hiding a secret in a curve
  1. Step 1: Secret becomes the first

  2. Step 2: Other coefficients picked at random

  3. Step 3: One point on the curve per person

  4. Step 4: Enough people pool their points

  5. Step 5: Fit the curve: the secret appears

Adi Shamir first developed the scheme in 1979. He is also the S in RSA, the famous algorithm he co-invented with Ron Rivest and Len Adleman. The classic picture is a company vault. If one person knows the code, it might be lost or unavailable when the vault must be opened. If several people know it, they may not trust each other to always act honestly. Handing out shares fixes both problems: the vault opens only when enough shares are presented.

The scheme can also treat people differently. With a threshold of 3, a president given three shares could unlock the safe alone, while three secretaries holding one share each would have to combine theirs.

Quiz me

0/3

  1. 1.Why do three points reveal the secret in a 3-of-5 scheme while two points do not?
  2. 2.Where is the secret hidden in Shamir's scheme?
  3. 3.What is wrong with a worked example that uses ordinary whole-number arithmetic, and what fixes it?

Recap

A degree t βˆ’ 1 curve needs t points, so t shares reveal the secret and fewer reveal nothing.

πŸ’‘ A trick to remember it Β· Two dots make a line and three make a parabola: hide the secret where the curve begins, hand out dots along it, and only enough dots redraw it.

Surprising fact Β· With plain whole numbers, one stolen share would reveal that the secret is even; finite field arithmetic closes the leak.

Sources (3)

No source, no claim. Every fact in this lesson (16 claims) cites at least one of these.

  1. [1]Shamir's secret sharing Β· Wikipedia
  2. [2]Adi Shamir Β· Wikipedia
  3. [3]Secret sharing Β· Wikipedia
More lessons in πŸ’» Tech (3) See all tech lessons β†’

One more light on your map.

Get one lesson like this every day, about the things you love. Free, in two or five minutes.

Get the share card for this lesson β†—