This secure single-item first-price auction demo (source code available on GitHub) simulates a secure multi-party computation (MPC) protocol entirely in your browser by importing and invoking the tinybid and underlying tinynmc libraries using PyScript.
Within the implementation of the library, vectors of finite field elements are used to represent both submitted bids and the overall outcome of an auction. 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 1 mod 115 mod 118 mod 113 mod 1110 mod 11 would be represented by . Note also that bidders and nodes are numbered starting from zero so that their interface identifiers match their indices in the source code.