prover

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const RedisLockKey = "prover_mutex_key"

Variables

This section is empty.

Functions

func IsBlockSizesSorted

func IsBlockSizesSorted(blockSizes []int) bool

func WithRedis

func WithRedis(redisType string, redisPass string) redis.Option

Types

type Prover

type Prover struct {
	Config config.Config

	RedisConn *redis.Redis

	DB                *gorm.DB
	ProofModel        proof.ProofModel
	BlockWitnessModel blockwitness.BlockWitnessModel

	VerifyingKeys      []groth16.VerifyingKey
	ProvingKeys        []groth16.ProvingKey
	OptionalBlockSizes []int
	R1cs               []frontend.CompiledConstraintSystem
}

func NewProver

func NewProver(c config.Config) *Prover

func (*Prover) ProveBlock

func (p *Prover) ProveBlock() error

func (*Prover) Shutdown

func (p *Prover) Shutdown()

Jump to

Keyboard shortcuts

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