phase1

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ContributionSize = 640

Variables

This section is empty.

Functions

func Contribute

func Contribute(inputPath, outputPath string) error

func Initialize

func Initialize(power byte, outputPath string) error

func Transform

func Transform(inputPath, outputPath string, inPower, outPower byte) error

func Verify

func Verify(inputPath, transformedPath string) error

Types

type Contribution

type Contribution struct {
	G1 struct {
		Tau, Alpha, Beta bn254.G1Affine
	}
	G2 struct {
		Tau, Beta bn254.G2Affine
	}
	PublicKeys struct {
		Tau, Alpha, Beta common.PublicKey
	}
	Hash []byte
}

func (*Contribution) ReadFrom

func (c *Contribution) ReadFrom(reader io.Reader) (int64, error)
type Header struct {
	Power         byte
	Contributions uint16
}

func (*Header) ReadFrom

func (p *Header) ReadFrom(reader io.Reader) error

Jump to

Keyboard shortcuts

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