math

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BLS12_381_BBS_GURVY_FAST_RNG math.CurveID

Functions

func CurveIDToString

func CurveIDToString(id math.CurveID) string

CurveIDToString returns the string representation of the passed curve ID.

func StringToCurveID

func StringToCurveID(s string) math.CurveID

StringToCurveID returns the curve ID associated with the passed string.

Types

type CurveWithFastRNG

type CurveWithFastRNG struct {
	mathdriver.Curve
	// contains filtered or unexported fields
}

CurveWithFastRNG represents a curve with a fast random number generator.

func NewCurveWithFastRNG

func NewCurveWithFastRNG(c mathdriver.Curve) *CurveWithFastRNG

NewCurveWithFastRNG returns a new CurveWithFastRNG instance for the passed curve.

func (*CurveWithFastRNG) Rand

func (c *CurveWithFastRNG) Rand() (io.Reader, error)

Rand returns the random number generator associated with the curve.

Jump to

Keyboard shortcuts

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