edstest

package
v0.20.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTestBlock added in v0.15.0

func GenerateTestBlock(
	t *testing.T,
	blobSize, numberOfTransactions int,
) (
	[]*blobtypes.MsgPayForBlobs,
	[]*libshare.Blob,
	[]libshare.Namespace,
	*rsmt2d.ExtendedDataSquare,
	coretypes.Txs,
	*da.DataAvailabilityHeader,
	[]byte,
)

GenerateTestBlock generates a set of test blocks with a specific blob size and number of transactions

func RandByzantineEDS

func RandByzantineEDS(t testing.TB, odsSize int, options ...nmt.Option) *rsmt2d.ExtendedDataSquare

func RandEDS

func RandEDS(t testing.TB, odsSize int) *rsmt2d.ExtendedDataSquare

RandEDS generates EDS filled with the random data with the given size for original square.

func RandEDSWithNamespace

func RandEDSWithNamespace(
	t testing.TB,
	namespace libshare.Namespace,
	namespacedAmount, odsSize int,
) (*rsmt2d.ExtendedDataSquare, *share.AxisRoots)

RandEDSWithNamespace generates EDS with given square size. Returned EDS will have namespacedAmount of shares with the given namespace.

func RandEDSWithTailPadding added in v0.20.2

func RandEDSWithTailPadding(t testing.TB, odsSize, padding int) *rsmt2d.ExtendedDataSquare

RandEDSWithTailPadding generates EDS of given ODS size filled with randomized and tail padding shares.

func RandomAxisRoots added in v0.20.2

func RandomAxisRoots(t testing.TB, edsSize int) *share.AxisRoots

RandomAxisRoots generates random share.AxisRoots for the given eds size.

Types

This section is empty.

Jump to

Keyboard shortcuts

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