driver

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 1 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Curve

type Curve interface {
	Pairing(G2, G1) Gt
	Pairing2(p2a, p2b G2, p1a, p1b G1) Gt
	FExp(Gt) Gt
	ModMul(a1, b1, m Zr) Zr
	ModNeg(a1, m Zr) Zr
	GenG1() G1
	GenG2() G2
	GenGt() Gt
	GroupOrder() Zr
	FieldBytes() int
	NewG1() G1
	NewG2() G2
	NewG1FromCoords(ix, iy Zr) G1
	NewZrFromBytes(b []byte) Zr
	NewZrFromInt(i int64) Zr
	NewG1FromBytes(b []byte) G1
	NewG2FromBytes(b []byte) G2
	NewGtFromBytes(b []byte) Gt
	ModAdd(a, b, m Zr) Zr
	ModSub(a, b, m Zr) Zr
	HashToZr(data []byte) Zr
	HashToG1(data []byte) G1
	NewRandomZr(rng io.Reader) Zr
	Rand() (io.Reader, error)
}

type G1

type G1 interface {
	Clone(G1)
	Copy() G1
	Add(G1)
	Mul(Zr) G1
	Mul2(e Zr, Q G1, f Zr) G1
	Equals(G1) bool
	Bytes() []byte
	Sub(G1)
	IsInfinity() bool
	String() string
}

type G2

type G2 interface {
	Clone(G2)
	Copy() G2
	Mul(Zr) G2
	Add(G2)
	Sub(G2)
	Affine()
	Bytes() []byte
	String() string
	Equals(G2) bool
}

type Gt

type Gt interface {
	Equals(Gt) bool
	Inverse()
	Mul(Gt)
	IsUnity() bool
	ToString() string
	Bytes() []byte
	Exp(Zr) Gt
}

type Zr

type Zr interface {
	Plus(Zr) Zr
	Mul(Zr) Zr
	Mod(Zr)
	PowMod(Zr) Zr
	InvModP(Zr)
	Bytes() []byte
	Equals(Zr) bool
	Copy() Zr
	Clone(a Zr)
	String() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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