bpgroup

package
Version: v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package bpgroup provides wrapper for groups and operations involved in the bilinear pairing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BpGroup

type BpGroup struct {
	// contains filtered or unexported fields
}

BpGroup represents data required for a bilinear pairing

func New

func New() *BpGroup

New returns a new instance of a BpGroup

func (*BpGroup) Gen1

func (b *BpGroup) Gen1() *Curve.ECP

Gen1 returns generator for G1

func (*BpGroup) Gen2

func (b *BpGroup) Gen2() *Curve.ECP2

Gen2 returns generator for G2

func (*BpGroup) Order

func (b *BpGroup) Order() *Curve.BIG

Order returns order of the group

func (*BpGroup) Pair

func (b *BpGroup) Pair(g1 *Curve.ECP, g2 *Curve.ECP2) *Curve.FP12

Pair performs the bilinear pairing operation e(G1, G2) -> GT

func (*BpGroup) Rng

func (b *BpGroup) Rng() *amcl.RAND

Rng returns instance of random number generator

Source Files

Jump to

Keyboard shortcuts

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