curve

package
v0.0.0-...-3348f2e Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTe2Mt25519

func FromTe2Mt25519() C.RationalMap

FromTe2Mt25519 returns the birational map between Edwards25519 and Curve25519 curves.

func FromTe2Mt4ISO448

func FromTe2Mt4ISO448() C.RationalMap

FromTe2Mt4ISO448 returns the four-degree isogeny between Edwards448 and Curve448 curves.

func GetBLS12381G1Isogeny

func GetBLS12381G1Isogeny() C.Isogeny

GetBLS12381G1Isogeny returns an 11-degree isogeny from BLS12381G1_11ISO to the BLS12381G1 elliptic curve.

func GetBLS12381G2Isogeny

func GetBLS12381G2Isogeny() C.Isogeny

GetBLS12381G2Isogeny returns an 3-degree isogeny from BLS12381G2_11ISO to the BLS12381G2 elliptic curve.

func GetSECP256K1Isogeny

func GetSECP256K1Isogeny() C.Isogeny

GetSECP256K1Isogeny returns a 3-degree isogeny from SECP256K1_3ISO to the SECP256K1 elliptic curve.

Types

type ID

type ID string
const (
	P256             ID = "P256"
	P384             ID = "P384"
	P521             ID = "P521"
	Curve25519       ID = "Curve25519"
	Curve448         ID = "Curve448"
	Edwards25519     ID = "Edwards25519"
	Edwards448       ID = "Edwards448"
	SECP256K1        ID = "SECP256K1"
	SECP256K1_3ISO   ID = "SECP256K1_3ISO"
	BLS12381G1       ID = "BLS12381G1"
	BLS12381G1_11ISO ID = "BLS12381G1_11ISO"
	BLS12381G2       ID = "BLS12381G2"
	BLS12381G2_3ISO  ID = "BLS12381G2_3ISO"
)

func (ID) Get

func (id ID) Get() C.EllCurve

Get returns a specific instance of an elliptic curve.

Jump to

Keyboard shortcuts

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