edstest

package
v0.18.3-mocha Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 21 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,
) (
	[]*types.MsgPayForBlobs,
	[]*blob.Blob,
	[]namespace.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 share.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

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

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