Share tokens (share format qs3) #
The AMD tag (Amd.lean) checks the rebuilt bytes. That is not enough with exactly k shares:
forgers who hold k − 1 shares can hand in a share under a new index chosen so that the honest
shares cancel out, and then the rebuilt bytes do not depend on the secret at all
(README: Forged shares). So each
share is also checked on its own:
splitdraws a random polynomialG(y) = g₀ + g₁·y + ⋯ + g_{k−1}·y^{k−1}over GF(2¹²⁸) and sharesE = encode (s ‖ G) x(the AMD encoding of the secret followed by the 16-byte coefficients ofG).- Share
icarries the tokenG(i)(16 bytes), which is not interpolated. decodechecks the AMD tag, readsG'from the rebuilt bytes, and checksG'(i)against the token of every given share.
Forgers holding k − 1 shares know G at k − 1 points, so G(z) at any other index is
uniformly random to them. Whatever they do, either an honest token or a forged one has to be
guessed, or they only use indices they hold, and then the AMD tag catches the change. The proof
is combine_detects_forgery_tok in proofs/.