auxpow

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: MIT Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSideChainPowTx

func NewSideChainPowTx(payload *payload.PayloadSideChainPow, currentHeight uint32) *ela.Transaction

Types

type SideAuxPow

type SideAuxPow struct {
	SideAuxMerkleBranch []common.Uint256
	SideAuxMerkleIndex  int
	SideAuxBlockTx      ela.Transaction
	MainBlockHeader     ela.Header
}

func GenerateSideAuxPow

func GenerateSideAuxPow(msgBlockHash common.Uint256, genesisHash common.Uint256) *SideAuxPow

func NewSideAuxPow

func NewSideAuxPow(sideAuxMerkleBranch []common.Uint256,
	sideAuxMerkleIndex int,
	sideAuxBlockTx ela.Transaction,
	mainBlockHeader ela.Header) *SideAuxPow

func (*SideAuxPow) Deserialize

func (sap *SideAuxPow) Deserialize(r io.Reader) error

func (*SideAuxPow) Serialize

func (sap *SideAuxPow) Serialize(w io.Writer) error

func (*SideAuxPow) SideAuxPowCheck

func (sap *SideAuxPow) SideAuxPowCheck(hashAuxBlock common.Uint256) bool

Jump to

Keyboard shortcuts

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