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 storyShamir'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.
Step 1: Secret becomes the first
Step 2: Other coefficients picked at random
Step 3: One point on the curve per person
Step 4: Enough people pool their points
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
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.
Connects to
- π§© How can a secret be split so that no single person holds it?
- π€ How can two millionaires learn who is richer without revealing their fortunes?
- βοΈ What did al-Khwarizmi's "restoring and balancing" actually do?
- π’ How does RSA turn two prime numbers into a lock anyone can close but only you can open?
Sources (3)
No source, no claim. Every fact in this lesson (16 claims) cites at least one of these.