gurvy

package
v0.0.0-...-e3e94bd Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bn254

type Bn254 struct {
}

func (*Bn254) FExp

func (c *Bn254) FExp(a driver.Gt) driver.Gt

func (*Bn254) FieldBytes

func (c *Bn254) FieldBytes() int

func (*Bn254) GenG1

func (c *Bn254) GenG1() driver.G1

func (*Bn254) GenG2

func (c *Bn254) GenG2() driver.G2

func (*Bn254) GenGt

func (c *Bn254) GenGt() driver.Gt

func (*Bn254) GroupOrder

func (c *Bn254) GroupOrder() driver.Zr

func (*Bn254) HashToG1

func (c *Bn254) HashToG1(data []byte) driver.G1

func (*Bn254) HashToZr

func (c *Bn254) HashToZr(data []byte) driver.Zr

func (*Bn254) ModAdd

func (*Bn254) ModAdd(a, b, m driver.Zr) driver.Zr

func (*Bn254) ModMul

func (c *Bn254) ModMul(a1, b1, m driver.Zr) driver.Zr

func (*Bn254) ModNeg

func (c *Bn254) ModNeg(a1, m driver.Zr) driver.Zr

func (*Bn254) ModSub

func (c *Bn254) ModSub(a, b, m driver.Zr) driver.Zr

func (*Bn254) NewG1

func (c *Bn254) NewG1() driver.G1

func (*Bn254) NewG1FromBytes

func (c *Bn254) NewG1FromBytes(b []byte) driver.G1

func (*Bn254) NewG1FromCoords

func (c *Bn254) NewG1FromCoords(ix, iy driver.Zr) driver.G1

func (*Bn254) NewG2

func (c *Bn254) NewG2() driver.G2

func (*Bn254) NewG2FromBytes

func (c *Bn254) NewG2FromBytes(b []byte) driver.G2

func (*Bn254) NewGtFromBytes

func (c *Bn254) NewGtFromBytes(b []byte) driver.Gt

func (*Bn254) NewRandomZr

func (c *Bn254) NewRandomZr(rng io.Reader) driver.Zr

func (*Bn254) NewZrFromBytes

func (c *Bn254) NewZrFromBytes(b []byte) driver.Zr

func (*Bn254) NewZrFromInt

func (c *Bn254) NewZrFromInt(i int64) driver.Zr

func (*Bn254) Pairing

func (c *Bn254) Pairing(p2 driver.G2, p1 driver.G1) driver.Gt

func (*Bn254) Pairing2

func (c *Bn254) Pairing2(p2a, p2b driver.G2, p1a, p1b driver.G1) driver.Gt

func (*Bn254) Rand

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

Jump to

Keyboard shortcuts

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