This decentralized biometric authentication demo (source code available on GitHub) simulates a secure multi-party computation (MPC) protocol entirely in your browser by importing and invoking the tinybio and underlying tinynmc libraries using PyScript. The face-api.js library is used for face detection and to generate descriptors.
Within the implementation of the library, vectors of finite field elements are used to represent both submitted descriptors and the overall result. 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 .