Homomorphic secret sharing
In cryptography, homomorphic secret sharing is a type of secret sharing algorithm in which the secret is encrypted via homomorphic encryption. A homomorphism is a transformation from one algebraic structure into another of the same type so that the structure is preserved. Importantly, this means that for every kind of manipulation of the original data, there is a corresponding manipulation of the transformed data.
Technique
Homomorphic secret sharing is used to transmit a secret to several recipients as follows:- Transform the "secret" using a homomorphism. This often puts the secret into a form which is easy to manipulate or store. In particular, there may be a natural way to 'split' the new form as required by step.
- Split the transformed secret into several parts, one for each recipient. The secret must be split in such a way that it can only be recovered when all or most of the parts are combined.
- Distribute the parts of the secret to each of the recipients.
- Combine each of the recipients' parts to recover the transformed secret, perhaps at a specified time.
- Reverse the homomorphism to recover the original secret.
Examples
In detail, suppose we have an election with:
- Two possible outcomes, either yes or no. We'll represent those outcomes numerically by +1 and −1, respectively.
- A number of authorities, k, who will count the votes.
- A number of voters, n, who will submit votes.
- In advance, each authority generates a publicly available numerical key, xk.
- Each voter encodes his vote in a polynomial pn according to the following rules: The polynomial should have degree, its constant term should be either +1 or −1, and its other coefficients should be randomly generated.
- Each voter computes the value of his polynomial pn at each authority's public key xk.
- * This produces k points, one for each authority.
- * These k points are the "pieces" of the vote: If you know all of the points, you can figure out the polynomial pn. However, if you know only some of the points, you can't figure out the polynomial.
- The voter sends each authority the value that was produced using the authority's key.
- Each authority collects the values that he receives. Since each authority only gets one value from each voter, he can't discover any given voter's polynomial. Moreover, he can't predict how altering the submissions will affect the vote.
- Once the voters have submitted their votes, each authority k computes and announces the sum Ak of all the values he's received.
- There are k sums, Ak; when they are combined together, they determine a unique polynomial P – specifically, the sum of all the voter polynomials: P = p1 + p2 +... + pn.
- * The constant term of P is in fact the sum of all the votes, because the constant term of P is the sum of the constant terms of the individual pn.
- * Thus the constant term of P provides the aggregate election result: if it is positive, more people voted for +1 than for −1; if it is negative, more people voted for −1 than for +1.
Features
The protocol requires authorities to be completed, therefore in case there are authorities, authorities can be corrupted, which gives the protocol a certain degree of robustness.
The protocol manages the IDs of the voters and therefore can verify that only legitimate voters have voted.
Under the assumptions on t:
- A ballot cannot be backtracked to the ID so the privacy of the voters is preserved.
- A voter cannot prove how they voted.
- It is impossible to verify a vote.
This is because the authorities have no incentive to change the ballot since each authority has only a share of the ballot and has no knowledge how changing this share will affect the outcome.