Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
Block represents the entirety of a Block in the Celestia network. It contains the erasure coded block data as well as its ExtendedHeader.
func (*Block) Data ¶
func (b *Block) Data() *ExtendedBlockData
Data returns the erasure coded data of the Block.
func (*Block) Header ¶
func (b *Block) Header() *header.ExtendedHeader
Header returns the ExtendedHeader of the Block.
type ExtendedBlockData ¶
type ExtendedBlockData = rsmt2d.ExtendedDataSquare
ExtendedBlockData is an alias to rsmt2d's ExtendedDataSquare type.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents the Block service that can be started / stopped on a `Full` node. Its main function is to reconstruct full blocks from shares.
func NewBlockService ¶
func NewBlockService(store ipld.DAGService) *Service
NewBlockService creates a new instance of block Service.
func (*Service) GetBlockData ¶
func (s *Service) GetBlockData(ctx context.Context, dah *da.DataAvailabilityHeader) (*ExtendedBlockData, error)
func (*Service) StoreBlockData ¶
func (s *Service) StoreBlockData(ctx context.Context, data *ExtendedBlockData) error
Click to show internal directories.
Click to hide internal directories.