Documentation ¶
Overview ¶
Package mimc provides a ZKP-circuit function to compute a MiMC hash.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiMC ¶
type MiMC struct {
// contains filtered or unexported fields
}
MiMC contains the params of the Mimc hash func and the curves on which it is implemented
func (*MiMC) Sum ¶
Sum hash (in r1cs form) using Miyaguchi–Preneel: https://en.wikipedia.org/wiki/One-way_compression_function The XOR operation is replaced by field addition. See github.com/consensys/gnark-crypto for reference implementation.
Click to show internal directories.
Click to hide internal directories.