forked from celestiaorg/celestia-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
17 lines (15 loc) · 867 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
Package share contains logic related to the retrieval and random sampling of shares of
block data.
Though this package contains several useful methods for getting specific shares and/or
sampling them at random, a particularly useful method is GetSharesByNamespace which retrieves
all shares of block data of the given Namespace from the block associated with the given
DataAvailabilityHeader (DAH, but referred to as Root within this package).
This package also contains declaration of the Availability interface. Implementations of
the interface (light, full) are located in the availability sub-folder.
Light Availability implementation samples for 16 shares of block data (enough to verify
the block's availability on the network).
Full Availability implementation samples for as many shares as necessary to fully reconstruct
the block data.
*/
package share