everyblockseed

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 8 Imported by: 5

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

Constants

This section is empty.

Variables

View Source
var (
	ModulePreBlockSeed = "区块种子"
)

Functions

func GetCurrentPrivateKey

func GetCurrentPrivateKey(hash common.Hash) []byte

func GetCurrentPublicKey

func GetCurrentPublicKey(hash common.Hash) []byte

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)

func (*EveryBlockSeedPlug1) Prepare

func (self *EveryBlockSeedPlug1) Prepare(height uint64, hash common.Hash) error

type PreBlockSeedPlug

type PreBlockSeedPlug interface {
	CalcSeed(req common.Hash, support baseinterface.RandomChainSupport) (*big.Int, error)
	Prepare(uint64, common.Hash) error
}

Jump to

Keyboard shortcuts

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