unsafekzg

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Overview

Package unsafekzg is a convenience package (to be use for test purposes only) to generate and cache SRS for the kzg scheme (and indirectly for PlonK setup).

Functions in this package are thread safe.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSRS

func NewSRS(ccs constraint.ConstraintSystem, opts ...Option) (canonical kzg.SRS, lagrange kzg.SRS, err error)

NewSRS returns a pair of kzg.SRS; one in canonical form, the other in lagrange form. Default options use a memory cache, see Option for more details & options.

Types

type Option

type Option func(*config) error

func WithFSCache

func WithFSCache() Option

WithCacheDir enables the filesystem cache and sets the cache directory to ~/.gnark/kzg by default.

Jump to

Keyboard shortcuts

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