ring_bn254

package
v0.0.0-...-6f146c5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChallengeInit

func ChallengeInit(msg string, a fr.Element, pk bn254.G1Affine) fr.Element

func ChallengeMain

func ChallengeMain(msg string, r fr.Element, c fr.Element, pk bn254.G1Affine, keyImage bn254.G1Affine) fr.Element

func GenerateFe

func GenerateFe() fr.Element

func GenerateGe

func GenerateGe(fe fr.Element) bn254.G1Affine

func GetKeyImage

func GetKeyImage(sk fr.Element, pk bn254.G1Affine) bn254.G1Affine

func GetRandomShiftFactor

func GetRandomShiftFactor(n int) int

func GetSignerIndex

func GetSignerIndex(ring []bn254.G1Affine, pk bn254.G1Affine) (int, error)

func HashPointToPoint

func HashPointToPoint(pk bn254.G1Affine) bn254.G1Affine

func KeyGen

func KeyGen() (fr.Element, bn254.G1Affine)

func Sign

func Sign(msg string, sk fr.Element, ring []bn254.G1Affine, keyImage bn254.G1Affine) []fr.Element

func Verify

func Verify(msg string, sig []fr.Element, ring []bn254.G1Affine, keyImage bn254.G1Affine) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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