zk

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const MockProofSize = 9000

Variables

This section is empty.

Functions

func CreateSnark

func CreateSnark(circuit CircuitFunc, privateParams, publicParams interface{}) ([]byte, error)

CreateSnark is a placeholder for a function call to the rust lurk library. Right now we do validate that the input parameters are valid, but we just return random bytes instead of a proof. This obviously needs to be changed.

func ValidateSnark

func ValidateSnark(circuit CircuitFunc, publicParams interface{}, proof []byte) (bool, error)

ValidateSnark is a placeholder for a function call to the rust lurk library. Right now we always return true for the snark being valid. This will obviously need to be changed.

Types

type CircuitFunc

type CircuitFunc func(privateParams, publicParams interface{}) bool

Directories

Path Synopsis
circuits
scripts

Jump to

Keyboard shortcuts

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