Research Article
A Manipulation Prevention Model for Blockchain-Based E-Voting Systems
Algorithm 2
Secret sharing algorithm.
| N nodes, P random prime | Input: Secret data | Output: Shared data | (1) | //calculation function coefficients | (2) | fori = 0 toNdo//calculate function | (3) | | (4) | forj = 0 toNdo//calculate slices | (5) | | (6) | returni = 0...N−1 |
|