mimc

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiMC

type MiMC struct {
	mimc.Params
}

MiMC gadget

func NewMiMC

func NewMiMC(seed string) MiMC

NewMiMC returns a MiMC gadget, than can be used in a circuit

func (MiMC) Hash

func (h MiMC) Hash(circuit *cs.CS, data ...*cs.Constraint) *cs.Constraint

Hash hash (in r1cs form) using Miyaguchi–Preneel: https://en.wikipedia.org/wiki/One-way_compression_function The XOR operation is replaced by field addition

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL