mimc

package
v0.0.0-...-05508b9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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