randombeacon

package
v2.1.6-beta.3+incompat... Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: GPL-3.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DoStageWork

type DoStageWork func() error

type GetCji

type GetCji func(db vm.StateDB, epochId uint64, proposerId uint32) ([]*bn256.G2, error)

type GetEnsFunc

type GetEnsFunc func(db vm.StateDB, epochId uint64, proposerId uint32) ([]*bn256.G1, error)

type GetRBMFunc

type GetRBMFunc func(db vm.StateDB, epochId uint64) ([]byte, error)

type GetRBProposerGroupFunc

type GetRBProposerGroupFunc func(epochId uint64) []bn256.G1

type LoopEvent

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

type PolyInfo

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

type PolyMap

type PolyMap map[uint32]PolyInfo

func (*PolyMap) DecodeRLP

func (polys *PolyMap) DecodeRLP(s *rlp.Stream) error

DecodeRLP implements rlp.Decoder

func (*PolyMap) EncodeRLP

func (polys *PolyMap) EncodeRLP(w io.Writer) error

DecodeRLP implements rlp.Encoder

type RandomBeacon

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

func GetRandonBeaconInst

func GetRandonBeaconInst() *RandomBeacon

func (*RandomBeacon) Init

func (rb *RandomBeacon) Init(epocher *epochLeader.Epocher)

func (*RandomBeacon) Loop

func (rb *RandomBeacon) Loop(statedb vm.StateDB, rc *rpc.Client, eid uint64, sid uint64) (err error)

func (*RandomBeacon) LoopRoutine

func (rb *RandomBeacon) LoopRoutine()

func (*RandomBeacon) Stop

func (rb *RandomBeacon) Stop()

type RbEnsDataCollector

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

type RbSIGDataCollector

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

type TaskTags

type TaskTags []bool

Jump to

Keyboard shortcuts

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