Documentation ¶
Index ¶
- func RandByzantineEDS(t *testing.T, size int, options ...nmt.Option) *rsmt2d.ExtendedDataSquare
- func RandEDS(t require.TestingT, size int) *rsmt2d.ExtendedDataSquare
- func RandEDSWithNamespace(t require.TestingT, namespace share.Namespace, namespacedAmount, size int) (*rsmt2d.ExtendedDataSquare, *share.Root)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandByzantineEDS ¶
func RandEDS ¶
func RandEDS(t require.TestingT, size int) *rsmt2d.ExtendedDataSquare
RandEDS generates EDS filled with the random data with the given size for original square. It uses require.TestingT to be able to take both a *testing.T and a *testing.B.
func RandEDSWithNamespace ¶
func RandEDSWithNamespace( t require.TestingT, namespace share.Namespace, namespacedAmount, size int, ) (*rsmt2d.ExtendedDataSquare, *share.Root)
RandEDSWithNamespace generates EDS with given square size. Returned EDS will have namespacedAmount of shares with the given namespace.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.