metadata

package
v0.0.0-...-7bd4979 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 6 Imported by: 6

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL