Documentation ¶
Index ¶
- func GenerateTestBlock(t *testing.T, blobSize, numberOfTransactions int) ([]*blobtypes.MsgPayForBlobs, []*libshare.Blob, []libshare.Namespace, ...)
- func RandByzantineEDS(t testing.TB, odsSize int, options ...nmt.Option) *rsmt2d.ExtendedDataSquare
- func RandEDS(t testing.TB, odsSize int) *rsmt2d.ExtendedDataSquare
- func RandEDSWithNamespace(t testing.TB, namespace libshare.Namespace, namespacedAmount, odsSize int) (*rsmt2d.ExtendedDataSquare, *share.AxisRoots)
- func RandEDSWithTailPadding(t testing.TB, odsSize, padding int) *rsmt2d.ExtendedDataSquare
- func RandomAxisRoots(t testing.TB, edsSize int) *share.AxisRoots
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 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.