generator

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBaseFields

func GenerateBaseFields(conf CurveConfig) error

GenerateBaseFields generates the base field fr and fp

func GenerateFq12over6over2

func GenerateFq12over6over2(conf CurveConfig) error

GenerateFq12over6over2 generates a tower 2->6->12 over fp

func GeneratePairing

func GeneratePairing(conf CurveConfig) error

GeneratePairing generates elliptic curve arithmetic

func GeneratePoint

func GeneratePoint(conf CurveConfig) error

GeneratePoint generates elliptic curve arithmetic

Types

type CurveConfig

type CurveConfig struct {
	CurveName string
	CoordType string
	PointName string
	RTorsion  string
	FpModulus string
	OutputDir string
}

CurveConfig describes parameters of the curve useful for the templates

Jump to

Keyboard shortcuts

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