blobtest

package
v0.0.0-...-f6291e5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OriginBlock = common.Hash{9, 9, 9, 9, 9}
	One         = common.Hash{1}
	Two         = common.Hash{2}
	Three       = common.Hash{3}
	Four        = common.Hash{4}
	Five        = common.Hash{5}
	Six         = common.Hash{6}
	Seven       = common.Hash{7}

	StartSlot = uint64(10)
	EndSlot   = uint64(15)
)

Functions

func NewBlobSidecars

func NewBlobSidecars(t *testing.T, count uint, signedHeader *phase0.SignedBeaconBlockHeader) []*deneb.BlobSidecar

NewBlobSidecars creates blob sidecars with valid KZG commitments and proofs. This generates blob data that respects BLS12-381 field constraints: each 32-byte chunk must be less than the field modulus to be a valid field element. The blob data is cryptographically valid and will work with KZG operations. If signedHeader is provided, it will be used for all sidecars; otherwise an empty header is created.

func RandBytes

func RandBytes(t *testing.T, size uint) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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