mimc
@algorandfoundation/algorand-typescript
@algorandfoundation/algorand-typescript / op / mimc
Function: mimc()
mimc(
c
,a
):bytes
Defined in: packages/algo-ts/src/op.ts:3328
MiMC hash of scalars A, using curve and parameters specified by configuration C A is a list of concatenated 32 byte big-endian unsigned integer scalars. Fail if A’s length is not a multiple of 32 or any element exceeds the curve modulus. The MiMC hash function has known collisions since any input which is a multiple of the elliptic curve modulus will hash to the same value. MiMC is thus not a general purpose hash function, but meant to be used in zero knowledge applications to match a zk-circuit implementation.
Parameters
c
a
Returns
See
Native TEAL opcode: mimc
Min AVM version: 11