srs

package
v0.0.0-...-8865a71 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheKey

func CacheKey(k uint64) string

func Generate

func Generate(canonicalSize uint64) (kzg.SRS, kzg.SRS, error)

func NewSRS

func NewSRS(ccs constraint.ConstraintSystem, downloadUrl, fsCacheDir string) (canonical, lagrange kzg.SRS, err error)

func WriteFile

func WriteFile(filePath string, entry CacheEntry) error

Types

type CacheEntry

type CacheEntry struct {
	Canonical kzg.SRS
	Lagrange  kzg.SRS
}

func ReadFile

func ReadFile(filePath string) (CacheEntry, error)

Jump to

Keyboard shortcuts

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