Versions in this module Expand all Collapse all v1 v1.0.1 Dec 19, 2023 Changes in this version + func ExtractKeys(srs1 *Phase1, srs2 *Phase2, evals *Phase2Evaluations, nConstraints int) (pk groth16.ProvingKey, vk groth16.VerifyingKey) + func InitPhase2(r1cs *cs.R1CS, srs1 *Phase1) (Phase2, Phase2Evaluations) + func VerifyPhase1(c0, c1 *Phase1, c ...*Phase1) error + func VerifyPhase2(c0, c1 *Phase2, c ...*Phase2) error + type Phase1 struct + Hash []byte + Parameters struct{ ... } + PublicKeys struct{ ... } + func InitPhase1(power int) (phase1 Phase1) + func (phase1 *Phase1) Contribute() + func (phase1 *Phase1) ReadFrom(reader io.Reader) (int64, error) + func (phase1 *Phase1) WriteTo(writer io.Writer) (int64, error) + type Phase2 struct + Hash []byte + Parameters struct{ ... } + PublicKey PublicKey + func (c *Phase2) Contribute() + func (c *Phase2) ReadFrom(reader io.Reader) (int64, error) + func (phase2 *Phase2) WriteTo(writer io.Writer) (int64, error) + type Phase2Evaluations struct + G1 struct{ ... } + G2 struct{ ... } + func (c *Phase2Evaluations) ReadFrom(reader io.Reader) (int64, error) + func (c *Phase2Evaluations) WriteTo(writer io.Writer) (int64, error) + type PublicKey struct + SG curve.G1Affine + SXG curve.G1Affine + XR curve.G2Affine