proving

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 10 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 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 WithPowCreator added in v0.8.3

func WithPowCreator(id []byte) 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