Documentation ¶
Overview ¶
Copyright (c) 2018-2019 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-2019 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
- func CheckVoteDataIsCompare(private []byte, public []byte) bool
- func GetAncestorHash(hash common.Hash, height uint64, support baseinterface.RandomChainSupport) (common.Hash, error)
- func GetCommonMap(private map[common.Address][]byte, public map[common.Address][]byte) map[common.Address]VoteData
- func GetDepositListByHeightAndRole(height *big.Int, role common.RoleType) ([]vm.DepositDetail, error)
- func GetElectGenTimes(support matrix.StateReader, height uint64) (*mc.ElectGenTimeStruct, error)
- func GetMaxNonce(hash common.Hash, support baseinterface.RandomChainSupport) (uint64, error)
- func GetMinHash(hash common.Hash, support baseinterface.RandomChainSupport) (common.Hash, error)
- func GetNumberByHash(hash common.Hash, support baseinterface.RandomChainSupport) (uint64, error)
- func GetSelfAddress() common.Address
- func GetValidPrivateSum(commonMap map[common.Address]VoteData) *big.Int
- func GetValidVoteSum(hash common.Hash, support baseinterface.RandomChainSupport) (*big.Int, error)
- func GetVoteData() (*big.Int, []byte, error)
- type VoteData
Constants ¶
View Source
const (
ModeleRandomCommon = "随机数服务公共组件"
)
Variables ¶
This section is empty.
Functions ¶
func CheckVoteDataIsCompare ¶
func GetAncestorHash ¶
func GetAncestorHash(hash common.Hash, height uint64, support baseinterface.RandomChainSupport) (common.Hash, error)
func GetCommonMap ¶
func GetElectGenTimes ¶
func GetElectGenTimes(support matrix.StateReader, height uint64) (*mc.ElectGenTimeStruct, error)
func GetMaxNonce ¶
func GetMaxNonce(hash common.Hash, support baseinterface.RandomChainSupport) (uint64, error)
func GetMinHash ¶
func GetMinHash(hash common.Hash, support baseinterface.RandomChainSupport) (common.Hash, error)
func GetNumberByHash ¶
func GetNumberByHash(hash common.Hash, support baseinterface.RandomChainSupport) (uint64, error)
func GetSelfAddress ¶
func GetValidVoteSum ¶
func GetValidVoteSum(hash common.Hash, support baseinterface.RandomChainSupport) (*big.Int, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.