Documentation ¶
Index ¶
- type BlockMetaData
- func (b *BlockMetaData) AddChildHeaderHash(ChildHeaderHash []byte)
- func (b *BlockMetaData) BlockDifficulty() []byte
- func (b *BlockMetaData) ChildHeaderHashes() [][]byte
- func (b *BlockMetaData) LastNHeaderHashes() [][]byte
- func (b *BlockMetaData) PBData() *generated.BlockMetaData
- func (b *BlockMetaData) Serialize() ([]byte, error)
- func (b *BlockMetaData) SetBlockDifficulty(value []byte)
- func (b *BlockMetaData) SetTotalDifficulty(value []byte)
- func (b *BlockMetaData) TotalDifficulty() []byte
- func (b *BlockMetaData) UpdateLastHeaderHashes(parentLastNHeaderHashes [][]byte, lastHeaderHash []byte)
- type TokenMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockMetaData ¶
type BlockMetaData struct {
// contains filtered or unexported fields
}
func CreateBlockMetadata ¶
func CreateBlockMetadata(blockDifficulty []byte, totalDifficulty []byte, childHeaderHashes [][]byte) *BlockMetaData
func DeSerializeBlockMetaData ¶
func DeSerializeBlockMetaData(data []byte) (*BlockMetaData, error)
func (*BlockMetaData) AddChildHeaderHash ¶
func (b *BlockMetaData) AddChildHeaderHash(ChildHeaderHash []byte)
func (*BlockMetaData) BlockDifficulty ¶
func (b *BlockMetaData) BlockDifficulty() []byte
func (*BlockMetaData) ChildHeaderHashes ¶
func (b *BlockMetaData) ChildHeaderHashes() [][]byte
func (*BlockMetaData) LastNHeaderHashes ¶
func (b *BlockMetaData) LastNHeaderHashes() [][]byte
func (*BlockMetaData) PBData ¶
func (b *BlockMetaData) PBData() *generated.BlockMetaData
func (*BlockMetaData) Serialize ¶
func (b *BlockMetaData) Serialize() ([]byte, error)
func (*BlockMetaData) SetBlockDifficulty ¶
func (b *BlockMetaData) SetBlockDifficulty(value []byte)
func (*BlockMetaData) SetTotalDifficulty ¶
func (b *BlockMetaData) SetTotalDifficulty(value []byte)
func (*BlockMetaData) TotalDifficulty ¶
func (b *BlockMetaData) TotalDifficulty() []byte
func (*BlockMetaData) UpdateLastHeaderHashes ¶
func (b *BlockMetaData) UpdateLastHeaderHashes(parentLastNHeaderHashes [][]byte, lastHeaderHash []byte)
type TokenMetadata ¶
type TokenMetadata struct {
// contains filtered or unexported fields
}
func CreateTokenMetadata ¶
func CreateTokenMetadata(tokenTxHash []byte, transferTokenTxHash []byte) *TokenMetadata
func DeSerializeTokenMetadata ¶
func DeSerializeTokenMetadata(data []byte) (*TokenMetadata, error)
func (*TokenMetadata) Append ¶
func (t *TokenMetadata) Append(transferTokenTxHash []byte)
func (*TokenMetadata) PBData ¶
func (t *TokenMetadata) PBData() *generated.TokenMetadata
func (*TokenMetadata) Remove ¶
func (t *TokenMetadata) Remove(transferTokenTxHash []byte)
func (*TokenMetadata) Serialize ¶
func (t *TokenMetadata) Serialize() ([]byte, error)
func (*TokenMetadata) TokenTxHash ¶
func (t *TokenMetadata) TokenTxHash() []byte
Click to show internal directories.
Click to hide internal directories.