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 ¶
Types ¶
type Option ¶
type Option func(*config) error
Option allows changing the behaviour of the unsafe KZG SRS generation.
func WithCacheDir ¶
WithCacheDir enables the filesystem cache and sets the cache directory to the provided path.
func WithFSCache ¶
func WithFSCache() Option
WithCacheDir enables the filesystem cache and sets the cache directory to ~/.gnark/kzg by default.
func WithToxicSeed ¶
WithToxicSeed sets the toxic value to the sha256 hash of the provided seed.
NB! This is a debug option and should not be used in production.
func WithToxicValue ¶
WithToxicValue sets the toxic value to the provided value.
NB! This is a debug option and should not be used in production.