func leafSum(cs *frontend.ConstraintSystem, h mimc.MiMC, data frontend.Variable) frontend.Variable {
	h.Write(data)
	res := h.Sum()
	return res
}
leafSum returns the hash created from data inserted to form a leaf.
Without domain separation.
package merkle
import (
	"github.com/consensys/gnark/frontend"
	"github.com/consensys/gnark/std/hash/mimc"
)