common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Data []string
}

Args ... ajax data

type ChainService

type ChainService struct {
	I int
	C *chain.Chain
	B *chain.Block
}

ChainService ...

func NewChainService

func NewChainService() *ChainService

NewChainService ...

func (*ChainService) CreateBlock

func (cs *ChainService) CreateBlock(args *Args, result *string) error

CreateBlock ...

func (*ChainService) GetBlock

func (cs *ChainService) GetBlock(arg uint64, result *string) error

GetPool ...

func (*ChainService) GetPool

func (cs *ChainService) GetPool(args *Args, result *string) error

GetPool ...

func (*ChainService) NewLog

func (cs *ChainService) NewLog(args *HexMessage, result *string) error

type HexMessage

type HexMessage struct {
	Pk                 string
	SupposeBlockNumber string
	Message            string
	Sig                StringSig
}

HexMessage ...

func (*HexMessage) ToLog

func (this *HexMessage) ToLog() *chain.Log

ToLog ... decode hex message to specific structure

type StringSig

type StringSig struct {
	R []byte
	S []byte
	H []byte
}

HexMessage ...

Jump to

Keyboard shortcuts

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