zeroKnow

package
v0.0.0-...-032b0eb Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileCircuit

func CompileCircuit(circuitBytes, publicInputs, privateInputs []byte) ([]byte, error)

func Groth16GenerateProofs

func Groth16GenerateProofs(compileCircuitBytes []byte, trustedSetupBytes []byte, publicInput []byte, privateInput []byte) ([]byte, error)

func Groth16TrustedSetup

func Groth16TrustedSetup(compileCircuitBytes []byte, publicInput []byte, privateInput []byte) ([]byte, error)

func Groth16VerifyProofs

func Groth16VerifyProofs(proofBytes []byte, trustedSetupBytes []byte, publicInputs []byte) (bool, error)

func ZeroVerify

func ZeroVerify(proofs []byte, trustedSetup []byte, publicInputs []byte) (bool, error)

Types

type ZkData

type ZkData struct {
	CompileJson   []byte
	CircuitFun    []byte
	PublicInputs  []byte
	PrivateInputs []byte
	TrustedSetup  []byte
	Proofs        []byte
}

func (*ZkData) CreatZeroProofs

func (z *ZkData) CreatZeroProofs() error

Jump to

Keyboard shortcuts

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