We can implement the version using the mimc hash stdlib. For reference, see the circom implementation: https://github.com/iden3/circomlib/blob/a8cdb6cd1ad652cca1a409da053ec98f19de6c9d/circuits/smt/smtprocessor.circom#L141