sync_committee

package
v0.0.0-...-a36dab5 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyncCommitteeRoot

func SyncCommitteeRoot[FR emulated.FieldParams, G1El algebra.G1ElementT, G2El algebra.G2ElementT, GtEl algebra.GtElementT](
	api frontend.API,
	verifyingKey plonk.VerifyingKey[FR, G1El, G2El],
	verifyingKeyFp chainark.FingerPrint[FR],
	proofs []plonk.Proof[FR, G1El, G2El],
	witnesses []plonk.Witness[FR],
	pubKeys [common.LenOfValidators]sw_bls12381.G1Affine,
) (*sync_committee_gadget.SyncCommitteeRoot[FR], frontend.Variable, error)

Types

type QuarterSyncCommitteeCircuit

type QuarterSyncCommitteeCircuit struct {
	PubKeys         [common.QuarterLenOfValidators]sw_bls12381.G1Affine
	QuarterSSZRoot  [common.LenOfHash]uints.U8 `gnark:",public"`
	QuarterMiMCRoot frontend.Variable          `gnark:",public"`
}

func (*QuarterSyncCommitteeCircuit) Define

type SyncCommitteeRootCircuit

type SyncCommitteeRootCircuit[FR emulated.FieldParams, G1El algebra.G1ElementT, G2El algebra.G2ElementT, GtEl algebra.GtElementT] struct {
	VerifyingKey      plonk.VerifyingKey[FR, G1El, G2El] `gnark:"-"`
	VKeyFpBytes       chainark.FingerPrintBytes
	Proofs            []plonk.Proof[FR, G1El, G2El]
	Witnesses         []plonk.Witness[FR]
	PubKeys           [common.LenOfValidators]sw_bls12381.G1Affine
	SyncCommitteeRoot sync_committee_gadget.SyncCommitteeRoot[FR] `gnark:",public"`
	MiMCRoot          frontend.Variable                           `gnark:",public"`
}

func (*SyncCommitteeRootCircuit[FR, G1El, G2El, GtEl]) Define

func (c *SyncCommitteeRootCircuit[FR, G1El, G2El, GtEl]) Define(api frontend.API) error

Jump to

Keyboard shortcuts

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