neo3legacy

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: LGPL-3.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyCrossChainMsgSig

func VerifyCrossChainMsgSig(native *native.NativeService, magic uint32, crossChainMsg *NeoCrossChainMsg) error

Types

type Neo3Handler

type Neo3Handler struct {
}

func NewNeo3Handler

func NewNeo3Handler() *Neo3Handler

func (*Neo3Handler) SyncBlockHeader

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

func (*Neo3Handler) SyncCrossChainMsg

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

func (*Neo3Handler) SyncGenesisHeader

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

type NeoBlockHeader

type NeoBlockHeader struct {
	*block.Header
}

func (*NeoBlockHeader) Deserialization

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

func (*NeoBlockHeader) GetMessage

func (this *NeoBlockHeader) GetMessage(magic uint32) ([]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(magic uint32) ([]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