common

package
v1.0.0-ceremony Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BitReverseG1

func BitReverseG1(a []bn254.G1Affine)

func BitReverseG2

func BitReverseG2(a []bn254.G2Affine)

func GenSP

func GenSP(sG1, sxG1 bn254.G1Affine, challenge []byte, dst byte) bn254.G2Affine

Generate SP in G₂ as Hash(gˢ, gˢˣ, challenge, dst)

func Parallelize

func Parallelize(nbIterations int, work func(int, int), maxCpus ...int)

Parallelize process in parallel the work function

func SameRatio

func SameRatio(a1, b1 bn254.G1Affine, a2, b2 bn254.G2Affine) bool

Check e(a₁, a₂) = e(b₁, b₂)

Types

type PublicKey

type PublicKey struct {
	S   bn254.G1Affine
	SX  bn254.G1Affine
	SPX bn254.G2Affine
}

func GenPublicKey

func GenPublicKey(x fr.Element, challenge []byte, dst byte) PublicKey

Jump to

Keyboard shortcuts

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