worker

package
v0.0.0-...-b8d36d6 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Groth16Prover

type Groth16Prover struct {
	Path string

	Proof   groth16.Proof
	Witness witness.Witness
	// contains filtered or unexported fields
}

func NewGroth16Prover

func NewGroth16Prover(Path string, curveId ecc.ID) (*Groth16Prover, error)

func (*Groth16Prover) CheckPath

func (w *Groth16Prover) CheckPath() error

func (*Groth16Prover) GenerateR1CS

func (w *Groth16Prover) GenerateR1CS() error

func (*Groth16Prover) GenerateWitness

func (w *Groth16Prover) GenerateWitness() error

func (*Groth16Prover) Prove

func (w *Groth16Prover) Prove() error

func (*Groth16Prover) ReadCircuit

func (w *Groth16Prover) ReadCircuit(keyPath string) error

func (*Groth16Prover) ReadProof

func (w *Groth16Prover) ReadProof(keyPath string) error

func (*Groth16Prover) ReadProvingKey

func (w *Groth16Prover) ReadProvingKey(keyPath string) error

func (*Groth16Prover) ReadVerifyingKey

func (w *Groth16Prover) ReadVerifyingKey(keyPath string) error

func (*Groth16Prover) Setup

func (w *Groth16Prover) Setup() error

func (*Groth16Prover) WriteCircuit

func (w *Groth16Prover) WriteCircuit(keyPath string) error

func (*Groth16Prover) WriteProof

func (w *Groth16Prover) WriteProof(keyPath string) error

func (*Groth16Prover) WriteProvingKey

func (w *Groth16Prover) WriteProvingKey(keyPath string) error

func (*Groth16Prover) WritePublicInputs

func (w *Groth16Prover) WritePublicInputs(inputPath string) error

func (*Groth16Prover) WriteVerifyingKey

func (w *Groth16Prover) WriteVerifyingKey(keyPath string) error

type Groth16Verifier

type Groth16Verifier struct {
	Path          string
	Vk            groth16.VerifyingKey
	Proof         groth16.Proof
	PublicWitness witness.Witness
}

func NewGroth16Verifier

func NewGroth16Verifier(Path string, curveId ecc.ID) (*Groth16Verifier, error)

func (*Groth16Verifier) CheckPath

func (w *Groth16Verifier) CheckPath() error

func (*Groth16Verifier) ReadProof

func (w *Groth16Verifier) ReadProof(keyPath string) error

func (*Groth16Verifier) ReadPublicInputs

func (w *Groth16Verifier) ReadPublicInputs(inputPath string) error

func (*Groth16Verifier) ReadVerifyingKey

func (w *Groth16Verifier) ReadVerifyingKey(keyPath string) error

func (*Groth16Verifier) Setup

func (w *Groth16Verifier) Setup() error

func (*Groth16Verifier) Verify

func (w *Groth16Verifier) Verify() error

func (*Groth16Verifier) WriteProof

func (w *Groth16Verifier) WriteProof(keyPath string) error

func (*Groth16Verifier) WritePublicInputs

func (w *Groth16Verifier) WritePublicInputs(inputPath string) error

func (*Groth16Verifier) WriteVerifyingKey

func (w *Groth16Verifier) WriteVerifyingKey(keyPath string) error

type Groth16Worker

type Groth16Worker struct {
	Path string

	Pk groth16.ProvingKey
	Vk groth16.VerifyingKey
	// contains filtered or unexported fields
}

func NewGroth16Worker

func NewGroth16Worker(Path string, curveId ecc.ID) (*Groth16Worker, error)

func (*Groth16Worker) CheckPath

func (w *Groth16Worker) CheckPath() error

func (*Groth16Worker) ReadCircuit

func (w *Groth16Worker) ReadCircuit(keyPath string) error

func (*Groth16Worker) ReadProvingKey

func (w *Groth16Worker) ReadProvingKey(keyPath string) error

func (*Groth16Worker) ReadVerifyingKey

func (w *Groth16Worker) ReadVerifyingKey(keyPath string) error

func (*Groth16Worker) Setup

func (w *Groth16Worker) Setup() error

func (*Groth16Worker) WriteCircuit

func (w *Groth16Worker) WriteCircuit(keyPath string) error

func (*Groth16Worker) WriteProvingKey

func (w *Groth16Worker) WriteProvingKey(keyPath string) error

func (*Groth16Worker) WriteVerifyingKey

func (w *Groth16Worker) WriteVerifyingKey(keyPath string) error

Jump to

Keyboard shortcuts

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