This repository contains a circom implementation of the Monolith hash function over the Goldilocks prime field
To run a test against the test vectors
yarn install
yarn test
The code is based on the reference implementation of Monolith from Horizon Labs.
The implementation of the Goldilocks field is taken from plonky2-circom.
These circuits were written over a few hours during ZK Hack Istanbul.
While they pass the test vectors, they have NOT been formally audited. Therefore, they should not be deployed in production. There's also a lot of scope for optimizations to reduce the number of constraints.
The plonky2-circom Goldilocks implementation might be underconstrained.
PRs welcome