Documentation ¶
Overview ¶
Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php
Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php
Index ¶
- Variables
- func GetCurrentPrivateKey(hash common.Hash) []byte
- func GetCurrentPublicKey(hash common.Hash) []byte
- func NewSubService(plug string, support baseinterface.RandomChainSupport) (baseinterface.RandomSubService, error)
- func RegisterLotterySeedPlugs(name string, plug PreBlockSeedPlug)
- type EveryBlockSeedPlug1
- type PreBlockSeedPlug
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ModulePreBlockSeed = "区块种子"
)
Functions ¶
func GetCurrentPrivateKey ¶
func GetCurrentPublicKey ¶
func NewSubService ¶
func NewSubService(plug string, support baseinterface.RandomChainSupport) (baseinterface.RandomSubService, error)
func RegisterLotterySeedPlugs ¶
func RegisterLotterySeedPlugs(name string, plug PreBlockSeedPlug)
Types ¶
type EveryBlockSeedPlug1 ¶
type EveryBlockSeedPlug1 struct {
// contains filtered or unexported fields
}
func (*EveryBlockSeedPlug1) CalcSeed ¶
func (self *EveryBlockSeedPlug1) CalcSeed(hash common.Hash, support baseinterface.RandomChainSupport) (*big.Int, error)
type PreBlockSeedPlug ¶
Click to show internal directories.
Click to hide internal directories.