Documentation
¶
Index ¶
- func AggregationBytesToAggregationBits(input []uint8) [common.LenOfValidators]uint8
- func DecodeHex(hexString string) []byte
- func DecodeHexTo32Bytes(hexString string) [common.LenOfHash]byte
- func DecodeHexTo48Bytes(hexString string) [common.LenOfPubKey]byte
- func ExtractFp(ccs constraint.ConstraintSystem, vk native_plonk.VerifyingKey, srsDir string) error
- func Power2Index(n uint64) int
- func PubKeysMiMCHash(h hash.Hash, pubKeys [][]byte) ([]byte, error)
- func ReadCcs(ccsFile string) (constraint.ConstraintSystem, error)
- func ReadCcsAndVk(ccsFile, vkFile string) (constraint.ConstraintSystem, native_plonk.VerifyingKey, error)
- func ReadPk(pkFile string) (native_plonk.ProvingKey, error)
- func ReadProofAndWts(proofFile, pubWitnessFile string) (native_plonk.Proof, witness.Witness, error)
- func ReadSrs(size int, srsDir string, srs kzg.SRS, srsLagrange kzg.SRS) error
- func ReadVk(vkFile string) (native_plonk.VerifyingKey, error)
- func RestoreMerkleRoot(index uint64, leaf [common.LenOfHash]byte, branches [][common.LenOfHash]byte) [common.LenOfHash]byte
- func SSZQuarterSyncCommittee(pubKeys [common.QuarterLenOfValidators][common.LenOfPubKey]byte) []byte
- func SSZRoot(input []byte, depth int) []byte
- func SSZSyncCommittee(pubKeys [common.LenOfValidators][common.LenOfPubKey]byte, aggPubKey []byte) []byte
- func U64To32LittleEndianBytes(val uint64) [32]byte
- func WriteCcsAndPkVk(circuit frontend.Circuit, ccsFile string, srsDir string, pkFile string, ...) error
- func WriteProofAndWts(assignment frontend.Circuit, ccs constraint.ConstraintSystem, ...) error
- type BeaconBlockHeader
- type BinaryMerkleTree
- type LightClientUpdateInfo
- type SyncAggregate
- type SyncCommittee
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregationBytesToAggregationBits ¶
func AggregationBytesToAggregationBits(input []uint8) [common.LenOfValidators]uint8
func DecodeHexTo48Bytes ¶
func DecodeHexTo48Bytes(hexString string) [common.LenOfPubKey]byte
func ExtractFp ¶
func ExtractFp(ccs constraint.ConstraintSystem, vk native_plonk.VerifyingKey, srsDir string) error
func Power2Index ¶
func ReadCcs ¶
func ReadCcs(ccsFile string) (constraint.ConstraintSystem, error)
func ReadCcsAndVk ¶
func ReadCcsAndVk(ccsFile, vkFile string) (constraint.ConstraintSystem, native_plonk.VerifyingKey, error)
func ReadPk ¶
func ReadPk(pkFile string) (native_plonk.ProvingKey, error)
func ReadProofAndWts ¶
func ReadVk ¶
func ReadVk(vkFile string) (native_plonk.VerifyingKey, error)
func RestoreMerkleRoot ¶
func SSZQuarterSyncCommittee ¶
func SSZQuarterSyncCommittee(pubKeys [common.QuarterLenOfValidators][common.LenOfPubKey]byte) []byte
func SSZSyncCommittee ¶
func SSZSyncCommittee(pubKeys [common.LenOfValidators][common.LenOfPubKey]byte, aggPubKey []byte) []byte
func WriteCcsAndPkVk ¶
func WriteProofAndWts ¶
func WriteProofAndWts(assignment frontend.Circuit, ccs constraint.ConstraintSystem, pk native_plonk.ProvingKey, vk native_plonk.VerifyingKey, proofFile string, witnessFile string) error
Types ¶
type BeaconBlockHeader ¶
type BinaryMerkleTree ¶
func BuildBinaryMerkleTree ¶
func BuildBinaryMerkleTree(leaves [][common.LenOfHash]byte) BinaryMerkleTree
type LightClientUpdateInfo ¶
type LightClientUpdateInfo struct { Version string `json:"version"` AttestedHeader *BeaconBlockHeader `json:"attested_header"` CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee,omitempty"` //current_sync_committee SyncAggregate *SyncAggregate `json:"sync_aggregate"` //sync_aggregate for attested_header, signed by current_sync_committee FinalizedHeader *BeaconBlockHeader `json:"finalized_header,omitempty"` //finalized_header in attested_header.state_root FinalityBranch []string `json:"finality_branch,omitempty"` // finality_branch in attested_header.state_root NextSyncCommittee *SyncCommittee `json:"next_sync_committee,omitempty"` //next_sync_committee in finalized_header.state_root NextSyncCommitteeBranch []string `json:"next_sync_committee_branch,omitempty"` //next_sync_committee branch in finalized_header.state_root SignatureSlot string `json:"signature_slot"` }
func LoadUpdateInfo ¶
func LoadUpdateInfo(file string) (LightClientUpdateInfo, error)
type SyncAggregate ¶
type SyncCommittee ¶
Click to show internal directories.
Click to hide internal directories.