Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveShaMux ¶
func InitDeriveSha ¶
func InitDeriveSha(chainConfig *params.ChainConfig, govEngine GovernanceEngine)
Types ¶
type DeriveShaConcat ¶
type DeriveShaConcat struct{}
An alternative implementation of DeriveSha() This function generates a hash of `DerivableList` as below: 1. make a byte slice by concatenating RLP-encoded items 2. make a hash of the byte slice.
func (DeriveShaConcat) DeriveSha ¶
func (d DeriveShaConcat) DeriveSha(list types.DerivableList) (hash common.Hash)
type DeriveShaOrig ¶
type DeriveShaOrig struct{}
func (DeriveShaOrig) DeriveSha ¶
func (d DeriveShaOrig) DeriveSha(list types.DerivableList) common.Hash
type DeriveShaSimple ¶
type DeriveShaSimple struct{}
An alternative implementation of DeriveSha() This function generates a hash of `DerivableList` by simulating merkle tree generation
func (DeriveShaSimple) DeriveSha ¶
func (d DeriveShaSimple) DeriveSha(list types.DerivableList) common.Hash
type GovernanceEngine ¶
type GovernanceEngine interface {
EffectiveParams(num uint64) (*params.GovParamSet, error)
}
type IDeriveSha ¶
type IDeriveSha interface {
DeriveSha(list types.DerivableList) common.Hash
}
Click to show internal directories.
Click to hide internal directories.