See this interesting thread: https://github.com/zcash/zcash/issues/2234 See MiMC: https://eprint.iacr.org/2016/492.pdf