Threshold family

Shamir's Secret Sharing

Split a secret into n shares so that any t of them recover it and fewer reveal nothing

unverified 1 variant Shamir, How to Share a Secret (Communications of the ACM, 1979)

Overview

Shamir's Secret Sharing divides a secret into shares using a random polynomial over a finite field, so that any threshold number of shares reconstructs the secret and any smaller set reveals no information. Its security is information-theoretic, not computational.

To share a secret s with threshold t, the dealer chooses a random polynomial of degree t - 1 whose constant term is s, and gives participant i the value of the polynomial at a distinct nonzero point x_i. Any t points determine the polynomial by Lagrange interpolation and therefore s. With fewer than t points, every possible secret is equally consistent with the shares, so the scheme is secure even against unbounded adversaries, including quantum ones.

Plain Shamir sharing assumes an honest dealer and honest shareholders. It offers no way to detect a corrupted share, and a malicious participant can supply a bad share during reconstruction to make others recover a wrong secret. Verifiable secret sharing (Feldman, Pedersen) and authenticated encodings address this. Byte-oriented implementations commonly work in GF(2^8), sharing each byte independently. Shares are the same size as the secret.

History

1979–1979
  1. Shamir's Secret Sharing published by Adi Shamir

How it works

  1. Choose random coefficients a1..a(t-1) and form f(x) = s + a1*x + ... + a(t-1)*x^(t-1).
  2. Give participant i the share (x_i, f(x_i)) for distinct nonzero x_i.
  3. To reconstruct, collect any t shares and interpolate f(0) with Lagrange coefficients.
  4. Discard the polynomial coefficients after dealing.

Security notes

Shares are not authenticated, so corrupted or malicious shares can silently produce a wrong secret; add integrity checks or use verifiable secret sharing. Coefficients must come from a cryptographically secure RNG, and implementations should avoid secret-dependent timing in field arithmetic.

Typical uses

Splitting master keys or recovery seeds among custodiansBacking up HSM or root CA keys with quorum recoveryBuilding block for threshold signatures and MPC

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
Shamir
shamir
unverified — — root

Frequently asked questions

Which Shamir's Secret Sharing variants does NextSSL include?

NextSSL registers 1 Shamir's Secret Sharing variant: shamir.

Families with similar names