Shamir Secret-Sharing Algebraic Homomorphisms, Multiplicative Property, and Marginal Uniformity #
This module extends Cslib.Crypto.Protocols.SecretSharing.Shamir with the linear and
multiplicative algebraic homomorphisms of Shamir secret sharing, Lagrange weight functional
identities at zero, and unauthorized-coalition marginal uniformity ([Sha79];
[BOGW88]; [GRR98]; [AL17]; [Gol04];
[KL20]):
- Shamir Algebraic Homomorphisms and Lagrange Weights at Zero:
- Linearity of
Polynomial.tailPolynomial,Polynomial.sharingPolynomial, andShamir.shareunder addition, scalar multiplication, constant shifts, and finite sums (share_zero,share_zero_randomness,share_add,share_smul,share_add_const,share_sum). - Explicit Lagrange weights at zero (
Polynomial.lagrangeWeightAtZero) and the linear-functional expansionPolynomial.reconstruct_eq_sum_lagrangeWeightAtZero, yielding linearity ofPolynomial.reconstructandShamir.reconstruct(Polynomial.reconstruct_add,Polynomial.reconstruct_smul,Polynomial.reconstruct_sum,reconstruct_add,reconstruct_smul,reconstruct_sum) and homomorphic secret recovery on authorized coalitions (reconstruct_share_add,reconstruct_share_smul,reconstruct_share_sum).
- Linearity of
- Multiplicative Property of Shamir Shares ($2t < |\text{Party}|$):
- Multiplying two degree-$\le t$ Shamir sharing polynomials with secrets $a, b$ and randomness
$r_1, r_2$ produces a degree-$\le 2t$ sharing polynomial with secret $a \cdot b$ and tail
coefficient vector
mulTailCoeffs a r₁ b r₂(sharingPolynomial_mul_eq_sharingPolynomial_mulTailCoeffs,eval_sharingPolynomial_mul). - When $2t < |\text{Party}|$ (i.e., $t < n / 2$), Lagrange reconstruction of pointwise share
products
share params r₁ a i * share params r₂ b irecovers $a \cdot b$ (reconstruct_mul_share_eq_mul).
- Multiplying two degree-$\le t$ Shamir sharing polynomials with secrets $a, b$ and randomness
$r_1, r_2$ produces a degree-$\le 2t$ sharing polynomial with secret $a \cdot b$ and tail
coefficient vector
- Lagrange Share Interpolation and Unauthorized-Coalition Marginal Uniformity:
- Given any unauthorized coalition $I \subseteq \text{Party}$ with $|I| \le t$, secret $y$, and
target coalition shares $\sigma : I \to F$,
interpCoeffs params I hI y σinterpolates a degree-$< t$ tail polynomial whose shares of $y$ restrict to $\sigma$ on $I$ (share_interpCoeffs). - Via
uniformOfFintype_map_addHom, the zero-secret restriction homomorphismshareZeroRestrictHom params Iis surjective for $|I| \le t$, so for every secret $y \in F$ the marginal distribution of $I$'s Shamir shares under uniform randomness is uniform on $I \to F$ (uniformOfFintype_map_restrict_share).
- Given any unauthorized coalition $I \subseteq \text{Party}$ with $|I| \le t$, secret $y$, and
target coalition shares $\sigma : I \to F$,
Main definitions #
Cslib.Crypto.Protocols.SecretSharing.Shamir.Polynomial.lagrangeWeightAtZero: explicit Lagrange interpolation weight at0for evaluation pointsx : ι → F.Cslib.Crypto.Protocols.SecretSharing.Shamir.mulTailPolynomial,Cslib.Crypto.Protocols.SecretSharing.Shamir.mulTailCoeffs: degree-$2t$ product tail polynomial and coefficient vector.Cslib.Crypto.Protocols.SecretSharing.Shamir.interpTailPolynomial,Cslib.Crypto.Protocols.SecretSharing.Shamir.interpCoeffs,Cslib.Crypto.Protocols.SecretSharing.Shamir.shareZeroRestrictHom: Lagrange tail interpolation and zero-secret coalition restriction homomorphism.
Main results #
Cslib.Crypto.Protocols.SecretSharing.Shamir.share_add,Cslib.Crypto.Protocols.SecretSharing.Shamir.share_smul,Cslib.Crypto.Protocols.SecretSharing.Shamir.share_sum,Cslib.Crypto.Protocols.SecretSharing.Shamir.Polynomial.reconstruct_eq_sum_lagrangeWeightAtZero,Cslib.Crypto.Protocols.SecretSharing.Shamir.Polynomial.reconstruct_add,Cslib.Crypto.Protocols.SecretSharing.Shamir.Polynomial.reconstruct_smul,Cslib.Crypto.Protocols.SecretSharing.Shamir.Polynomial.reconstruct_sum,Cslib.Crypto.Protocols.SecretSharing.Shamir.Polynomial.reconstruct_share_eq_secret,Cslib.Crypto.Protocols.SecretSharing.Shamir.reconstruct_add,Cslib.Crypto.Protocols.SecretSharing.Shamir.reconstruct_smul,Cslib.Crypto.Protocols.SecretSharing.Shamir.reconstruct_sum: linearity of Shamir sharing and Lagrange reconstruction.Cslib.Crypto.Protocols.SecretSharing.Shamir.reconstruct_mul_share_eq_mul,Cslib.Crypto.Protocols.SecretSharing.Shamir.eval_sharingPolynomial_mul: multiplicative property of Shamir shares for $2t < |\text{Party}|$.Cslib.Crypto.Protocols.SecretSharing.Shamir.share_interpCoeffs,Cslib.Crypto.Protocols.SecretSharing.Shamir.uniformOfFintype_map_restrict_share: Lagrange share interpolation and marginal uniformity of unauthorized coalitions ($|I| \le t$).
References #
- A. Shamir, How to Share a Secret.
- M. Ben-Or, S. Goldwasser, A. Wigderson, Completeness Theorems for Non-Cryptographic Fault-Tolerant Distributed Computation.
- R. Gennaro, M. O. Rabin, T. Rabin, Simplified VSS and Fast-Track Multiparty Computations with Applications to Threshold Cryptography.
- G. Asharov, Y. Lindell, A Full Proof of the BGW Protocol for Perfectly Secure Multiparty Computation.
- O. Goldreich, Foundations of Cryptography, Volume 2: Basic Applications, Chapter 7.
- J. Katz, Y. Lindell, Introduction to Modern Cryptography.
1. Polynomial and Lagrange reconstruction linearity #
Polynomial.tailPolynomial maps the zero coefficient vector to the zero polynomial.
Polynomial.tailPolynomial is F-linear with respect to scalar multiplication.
The sharing polynomial with zero secret and zero tail is the zero polynomial.
Polynomial.sharingPolynomial is additive in the secret and tail polynomial.
Polynomial.sharingPolynomial is homogeneous under scalar multiplication by c : F.
Polynomial.sharingPolynomial commutes with finite sums of secrets and tail polynomials.
Explicit Lagrange interpolation weight at 0 for evaluation points x : ι → F: the constant
coefficient of the i-th Lagrange basis polynomial over Finset.univ.
Polynomial.reconstruct is the F-linear combination of share values weighted by
lagrangeWeightAtZero.
The Lagrange interpolation weight at 0 for x : ι → F is nonzero whenever x is injective
and takes nonzero values (specialization of Lagrange.eval_basis_ne_zero at 0).
Reconstructing a single-coordinate vector Pi.single i c evaluates to c times the Lagrange
weight at 0.
Reconstructing the zero share vector returns 0.
Polynomial.reconstruct is additive in the share vector σ.
Polynomial.reconstruct is homogeneous with respect to scalar multiplication.
2. Shamir secret-sharing algebraic homomorphisms #
Reconstructing the zero coalition share vector returns 0.
3. Multiplicative property of Shamir shares #
Tail polynomial of the product of two Shamir sharing polynomials
sharingPolynomial a t₁ * sharingPolynomial b t₂.
Multiplying two Shamir sharing polynomials with secrets a and b yields a Shamir sharing
polynomial with secret a * b and tail mulTailPolynomial a t₁ b t₂.
If t₁ and t₂ have degree < t, then mulTailPolynomial a t₁ b t₂ has degree < 2 * t.
Coefficient vector in Fin (2 * t) → F of the degree-< 2 * t tail polynomial of the product
of two degree-$\le t$ Shamir sharing polynomials.
Multiplying two degree-$\le t$ Shamir sharing polynomials produces the degree-$\le 2t$ Shamir
sharing polynomial with secret a * b and tail coefficients mulTailCoeffs a r₁ b r₂.
Pointwise product of party i's degree-$t$ Shamir shares of a and b equals the evaluation
at params.point i of the degree-$\le 2t$ sharing polynomial with secret a * b and tail
coefficients mulTailCoeffs a r₁ b r₂.
4. Lagrange share interpolation and unauthorized-coalition marginal uniformity #
Interpolating tail polynomial of degree < |I| that maps each i : I to
(σ i - y) / params.point i, so that sharingPolynomial y evaluates to σ i at params.point i.
Coefficient vector in Randomness params interpolating target shares σ : I → F on an
unauthorized coalition I (I.card ≤ params.threshold) for secret y : F.