auxpow

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2018 License: MIT Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSideChainPowTx

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

Types

type SideAuxPow

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

func GenerateSideAuxPow

func GenerateSideAuxPow(msgBlockHash Uint256, genesisHash Uint256) *SideAuxPow

func NewSideAuxPow

func NewSideAuxPow(sideAuxMerkleBranch []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 Uint256) bool

Jump to

Keyboard shortcuts

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