bn256

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProofVerify

func ProofVerify(vk *VerificationKey, proof *Proof, inputs []*big.Int) (bool, error)

Types

type Proof

type Proof struct {
	A *bn254.PointG1
	B *bn254.PointG2
	C *bn254.PointG1
}

func GetProofFromCompressed

func GetProofFromCompressed(proof []byte) (*Proof, error)

func (*Proof) ToCompressed added in v0.10.0

func (p *Proof) ToCompressed() []byte

type VerificationKey

type VerificationKey struct {
	AlphaG1 *bn254.PointG1
	BetaG2  *bn254.PointG2
	GammaG2 *bn254.PointG2
	DeltaG2 *bn254.PointG2
	Ic      []*bn254.PointG1
}

func GetVerificationKeyFromCompressed

func GetVerificationKeyFromCompressed(vk []byte) (*VerificationKey, error)

func (*VerificationKey) ToCompressed added in v0.10.0

func (v *VerificationKey) ToCompressed() []byte

Directories

Path Synopsis
utils

Jump to

Keyboard shortcuts

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