statute

package
v0.2.3-rc Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStatuteService

func NewStatuteService(ctx *node.ServiceContext) (node.Service, error)

Types

type AnmapService

type AnmapService interface {
	BindInfo(addr common.Address, blockNumber *big.Int, blockHash *common.Hash) (from common.Address, nodeids []common.Address, err error)
	Bind(from, nodeAddr common.Address, sigHex string) (common.Hash, error)
	Unbind(from, nodeAddr common.Address, sigHex string) (common.Hash, error)
}

func GetAnmapService

func GetAnmapService() (AnmapService, error)

type StatuteService

type StatuteService struct {
	// contains filtered or unexported fields
}

func (*StatuteService) APIs

func (self *StatuteService) APIs() []rpc.API

func (*StatuteService) Bind

func (self *StatuteService) Bind(from, nodeAddr common.Address, sigHex string) (common.Hash, error)

func (*StatuteService) BindInfo

func (self *StatuteService) BindInfo(addr common.Address, blockNumber *big.Int, blockHash *common.Hash) (from common.Address, nodeids []common.Address, err error)

func (*StatuteService) Protocols

func (self *StatuteService) Protocols() []p2p.Protocol

func (*StatuteService) Start

func (self *StatuteService) Start(server *p2p.Server) error

func (*StatuteService) Stop

func (self *StatuteService) Stop() error

func (*StatuteService) Unbind

func (self *StatuteService) Unbind(from, nodeAddr common.Address, sigHex string) (common.Hash, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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