Documentation ¶
Index ¶
- func BitlistWithAllBitsSet(length uint64) bitfield.Bitlist
- func Bitlists64WithMultipleBitSet(t testing.TB, n, length, count uint64) []*bitfield.Bitlist64
- func Bitlists64WithSingleBitSet(n, length uint64) []*bitfield.Bitlist64
- func BitlistsWithMultipleBitSet(t testing.TB, n, length, count uint64) []bitfield.Bitlist
- func BitlistsWithSingleBitSet(n, length uint64) []bitfield.Bitlist
- func MakeAttestationsFromBitlists(bl []bitfield.Bitlist) []*ethpb.Attestation
- func MakeSyncContributionsFromBitVector(bl []bitfield.Bitvector128) []*prysmv2.SyncCommitteeContribution
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BitlistWithAllBitsSet ¶
func BitlistWithAllBitsSet(length uint64) bitfield.Bitlist
BitlistWithAllBitsSet creates list of bitlists with all bits set.
func Bitlists64WithMultipleBitSet ¶ added in v1.2.0
Bitlists64WithMultipleBitSet creates list of bitlists with random n bits set.
func Bitlists64WithSingleBitSet ¶ added in v1.2.0
func Bitlists64WithSingleBitSet(n, length uint64) []*bitfield.Bitlist64
Bitlists64WithSingleBitSet creates list of bitlists with a single bit set in each.
func BitlistsWithMultipleBitSet ¶
BitlistsWithMultipleBitSet creates list of bitlists with random n bits set.
func BitlistsWithSingleBitSet ¶
func BitlistsWithSingleBitSet(n, length uint64) []bitfield.Bitlist
BitlistsWithSingleBitSet creates list of bitlists with a single bit set in each.
func MakeAttestationsFromBitlists ¶
func MakeAttestationsFromBitlists(bl []bitfield.Bitlist) []*ethpb.Attestation
MakeAttestationsFromBitlists creates list of attestations from list of bitlist.
func MakeSyncContributionsFromBitVector ¶ added in v1.4.1
func MakeSyncContributionsFromBitVector(bl []bitfield.Bitvector128) []*prysmv2.SyncCommitteeContribution
MakeSyncContributionsFromBitVector creates list of sync contributions from list of bitvector.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.