This secure voting workflow demo (source code available on GitHub) simulates a secure multi-party computation (MPC) protocol entirely in your browser by importing and invoking the tinyvote library using PyScript.
Within the implementation of the library, vectors of finite field elements are used to represent both submitted votes and the overall outcome. In the visualizations below, instances of these data structures are rendered using a variant of a heat map in which the brightness value corresponds to the difference between the finite field element and zero. For example, a vector such as 2 mod 115 mod 118 mod 113 mod 1110 mod 11 would be represented by . Note also that voters and nodes are numbered starting from zero in order to match the source code.