mimc

package
v0.0.0-...-ea90456 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConstraintSystem

func NewConstraintSystem() (constraint.ConstraintSystem, error)

NewConstraintSystem return the compiled ConstraintSystem implementing a pre image check

func Prove

Prove generate a zkp proof using ProvingKey

func Setup

func Setup() (*zkp.ZkpInfo, error)

Setup generate CompiledConstraintSystem, ProvingKey and VerifyingKey

func Verify

func Verify(proof groth16_bls381.Proof, vk groth16_bls381.VerifyingKey, hashResult []byte) (bool, error)

Verify verify a zkp proof using VerifyingKey

Types

This section is empty.

Jump to

Keyboard shortcuts

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