Documentation
¶
Index ¶
- Variables
- func VerifyHash(data []byte, hash int) error
- type Block
- type Buffer
- type DataFrame
- func (n DataFrame) Bytes() []uint8
- func (n DataFrame) GetHash() (int, bool)
- func (n DataFrame) GetIndex() (int, bool)
- func (n DataFrame) GetNext() (List__Link, bool)
- func (n DataFrame) GetTotal() (int, bool)
- func (n DataFrame) HasHash() bool
- func (n DataFrame) HasIndex() bool
- func (n DataFrame) HasNext() bool
- func (n DataFrame) HasTotal() bool
- type Entry
- type Epoch
- type Hash
- type List__Link
- type List__Shredding
- type Rewards
- type Shredding
- type SlotMeta
- type Subset
- type Transaction
Constants ¶
This section is empty.
Variables ¶
var Prototypes schemaSlab
Functions ¶
func VerifyHash ¶
VerifyHash verifies that the provided data matches the provided hash. In case of DataFrames, the hash is stored in the 'Hash' field, and it is the hash of the concatenated 'Data' fields of all the DataFrames.
Types ¶
type Block ¶
type Block struct {
Kind int
Slot int
Shredding List__Shredding
Entries List__Link
Meta SlotMeta
Rewards datamodel.Link
}
func (Block) GetBlockHeight ¶
GetBlockHeight returns the 'block_height' field, which indicates the height of the block, and a flag indicating whether the field has a value.
type DataFrame ¶
type DataFrame struct {
Kind int
Hash **int
Index **int
Total **int
Data []uint8
Next **List__Link
}
func (DataFrame) Bytes ¶
GetData returns the value of the 'Data' field and a flag indicating whether the field has a value.
func (DataFrame) GetHash ¶
GetHash returns the value of the 'Hash' field and a flag indicating whether the field has a value.
func (DataFrame) GetIndex ¶
GetIndex returns the value of the 'Index' field and a flag indicating whether the field has a value.
func (DataFrame) GetNext ¶
func (n DataFrame) GetNext() (List__Link, bool)
GetNext returns the value of the 'Next' field and a flag indicating whether the field has a value.
func (DataFrame) GetTotal ¶
GetTotal returns the value of the 'Total' field and a flag indicating whether the field has a value.
type Epoch ¶
type Epoch struct {
Kind int
Epoch int
Subsets List__Link
}
type List__Link ¶
type List__Shredding ¶
type List__Shredding []Shredding
type Transaction ¶
func (Transaction) GetPositionIndex ¶
func (n Transaction) GetPositionIndex() (int, bool)
GetPositionIndex returns the 'Index' field, which indicates the index of the transaction in the block (0-based), and a flag indicating whether the field has a value.
func (Transaction) HasIndex ¶
func (n Transaction) HasIndex() bool
Transaction.HasIndex returns whether the 'Index' field is present.