Secret Sharing & Threshold Schemes

Splitting a secret into n shares so any m reconstruct it and m-1 reveal literally nothing — Shamir's polynomial scheme worked end to end, and where threshold cryptography is actually deployed.

Some keys must not have a single holder. A root CA key, a cryptocurrency cold wallet, a disaster-recovery master key, a nuclear release code — each needs distributed authority, where no one person can act alone and no one person's absence blocks everyone else. Secret sharing provides exactly this, with an information-theoretic guarantee rather than a computational one.

The trivial scheme, and why it isn't enough #

Split a secret MM among two parties: generate random RR the same length as MM, give one party RR and the other S=M⊕RS = M \oplus R. Either share alone is a one-time pad ciphertext — perfectly uninformative. Extend to nn parties by XOR-ing with n−1n-1 random strings.

This is unconditionally secure and useless in practice, because it is an all-or-nothing scheme: lose one share and the secret is gone forever. Schneier makes the point plainly — if one shareholder leaves the company with their piece, nobody can reconstruct, and the remaining holders learn nothing but the length.

Shamir's threshold scheme #

Shamir (1979) fixed this with polynomials over a finite field. An (m,n)(m, n)-threshold scheme produces nn shares such that any mm reconstruct the secret and any m−1m-1 reveal nothing.

Pick a prime pp larger than the secret and than nn. To build a (3,n)(3, n) scheme, choose a quadratic

F(x)=(ax2+bx+M) mod pF(x) = (a x^2 + b x + M) \bmod p

with a,ba, b random and discarded after distribution. Share ii is the pair (i,F(i))(i, F(i)). Any three shares give three equations in three unknowns; recover MM by Lagrange interpolation at x=0x = 0.

That last property is what distinguishes threshold sharing from "splitting the password in half", where each half cuts the search space. Shamir's scheme is information-theoretically secure: m−1m-1 shares give an unbounded adversary zero information, not merely insufficient computing time.

Properties and variants #

  • Extensible — new shares are just more evaluations; issue one to a new holder without disturbing existing shares.
  • Refreshable — periodically re-randomize a,ba, b keeping MM fixed, and redistribute. Old shares become useless, which defeats an attacker slowly collecting shares over years (proactive secret sharing).
  • Weighted — give an important holder several shares. Schneier's illustration: a general holding three shares and colonels one each, in a (5,n)(5, n) scheme, means the general plus two colonels or five colonels can act, but neither alone.
  • Blakley's scheme (1979, independent) uses intersecting hyperplanes instead of polynomials; correct but with larger shares, so Shamir's is what gets deployed.

Where this is actually used #

  • Key ceremonies. Root CA and DNSSEC root KSK operations split the activation material among officers, in a filmed procedure with multiple custodians — no single person can activate the key.
  • Cryptocurrency custody. Institutional cold storage splits the seed across geographies and officers; consumer wallets expose it as "Shamir backup" (SLIP-39).
  • HSM administration. FIPS 140 modules commonly require mm of nn smartcards to authorize sensitive operations.
  • Threshold signatures — the important modern generalization. Rather than reconstructing the key and thereby exposing it, threshold cryptography lets mm parties jointly produce a signature while the private key never exists anywhere. NIST IR 8214 covers this; threshold ECDSA and FROST (threshold Schnorr) are deployed in custody and validator infrastructure.

Source claims audit #

The worked example and the general framing were seeded from Applied Cryptography ch. 3.6–3.7 and 23.2.

Claim from source Status Notes
XOR-based all-or-nothing splitting; each part alone is meaningless current Correct — it is a one-time pad
Loss of any one share destroys the secret in the XOR scheme current The motivation for threshold schemes
(m,n)(m,n)-threshold definition; Lagrange polynomial construction current Matches Shamir 1979
Worked example shares k1..k5=0,3,7,12,5k_1..k_5 = 0, 3, 7, 12, 5 current Recomputed; all five confirmed
Polynomial printed as F(x)=(7x2+5x+11) mod 13F(x) = (7x^2 + \mathbf{5}x + 11) \bmod 13 error in source The five listed shares are all computed with b=8b = 8, not 5. With b=5b=5 the shares would be 10,10,11,0,310, 10, 11, 0, 3. Corrected to 8x8x above
Weighted sharing via multiple shares (general/colonels) current Still the standard trick
Dealer ("Trent") has absolute power and may distribute nonsense undetectably current, and under-developed The source notes it and moves on, treating it as acceptable because the secret is the dealer's. Modern deployments do not assume a trusted dealer — added VSS above
Source predates threshold signatures — Added: the reconstruct-free generalization is what current custody systems actually use

Sources

  1. paperHow to Share a Secret (Shamir, 1979)
  2. bookApplied Cryptography, 2nd ed., ch. 3.6-3.7 & 23.2 (Schneier)
  3. paperSafeguarding cryptographic keys (Blakley, 1979)
  4. docsNIST IR 8214 — Threshold Schemes for Cryptographic Primitives

Searches titles, aliases, headings, summaries, and full text.↑↓ move ↵ open esc close