neo

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyCrossChainMsgSig

func VerifyCrossChainMsgSig(native *native.NativeService, chainID uint64, crossChainMsg *NeoCrossChainMsg) error

Types

type NEOHandler

type NEOHandler struct {
}

func NewNEOHandler

func NewNEOHandler() *NEOHandler

func (*NEOHandler) SyncBlockHeader

func (this *NEOHandler) SyncBlockHeader(native *native.NativeService) error

func (*NEOHandler) SyncCrossChainMsg

func (this *NEOHandler) SyncCrossChainMsg(native *native.NativeService) error

func (*NEOHandler) SyncGenesisHeader

func (this *NEOHandler) SyncGenesisHeader(native *native.NativeService) error

type NeoBlockHeader

type NeoBlockHeader struct {
	*block.BlockHeader
}

func (*NeoBlockHeader) Deserialization

func (this *NeoBlockHeader) Deserialization(source *common.ZeroCopySource) error

func (*NeoBlockHeader) GetMessage

func (this *NeoBlockHeader) GetMessage() ([]byte, error)

func (*NeoBlockHeader) Serialization

func (this *NeoBlockHeader) Serialization(sink *common.ZeroCopySink) error

type NeoConsensus

type NeoConsensus struct {
	ChainID       uint64
	Height        uint32
	NextConsensus helper.UInt160
}

func (*NeoConsensus) Deserialization

func (this *NeoConsensus) Deserialization(source *common.ZeroCopySource) error

func (*NeoConsensus) Serialization

func (this *NeoConsensus) Serialization(sink *common.ZeroCopySink)

type NeoCrossChainMsg

type NeoCrossChainMsg struct {
	*mpt.StateRoot
}

func (*NeoCrossChainMsg) Deserialization

func (this *NeoCrossChainMsg) Deserialization(source *common.ZeroCopySource) error

func (*NeoCrossChainMsg) GetMessage

func (this *NeoCrossChainMsg) GetMessage() ([]byte, error)

func (*NeoCrossChainMsg) GetScriptHash

func (this *NeoCrossChainMsg) GetScriptHash() (helper.UInt160, error)

func (*NeoCrossChainMsg) Serialization

func (this *NeoCrossChainMsg) Serialization(sink *common.ZeroCopySink) error

Jump to

Keyboard shortcuts

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