neo3legacy

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: LGPL-3.0 Imports: 16 Imported by: 0

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