proving

package
v0.12.11 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate added in v0.4.0

func Generate(
	ctx context.Context,
	ch shared.Challenge,
	cfg config.Config,
	logger *zap.Logger,
	opts ...OptionFunc,
) (*shared.Proof, *shared.ProofMetadata, error)

Types

type OptionFunc added in v0.4.0

type OptionFunc func(*option) error

func LightMode added in v0.11.0

func LightMode() OptionFunc

func WithDataSource added in v0.4.0

func WithDataSource(cfg config.Config, nodeId, commitmentAtxId []byte, datadir string) OptionFunc

WithDataSource sets the data source to use for the proof.

func WithNonces added in v0.5.1

func WithNonces(nonces uint) OptionFunc

func WithPowFlags added in v0.7.0

func WithPowFlags(flags config.PowFlags) OptionFunc

func WithThreads added in v0.5.2

func WithThreads(threads uint) OptionFunc

Jump to

Keyboard shortcuts

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