circuits

package
v0.0.0-...-8013fef Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Circuits map[string]CircuitEntry

Functions

This section is empty.

Types

type CircuitEntry

type CircuitEntry struct {
	Circuit frontend.Circuit
	Curve   ecc.ID
}

type MimcCircuit

type MimcCircuit struct {
	// struct tag on a variable is optional
	// default uses variable name and secret visibility.
	PreImage frontend.Variable
	Hash     frontend.Variable `gnark:",public"`
}

Circuit defines a pre-image knowledge proof mimc(secret preImage) = public hash

func (*MimcCircuit) Define

func (circuit *MimcCircuit) Define(api frontend.API) error

Define declares the circuit's constraints Hash = mimc(PreImage)

Jump to

Keyboard shortcuts

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