Versions in this module Expand all Collapse all v0 v0.6.1 Jan 21, 2020 Changes in this version + const MAX_COMMITTER_COUNT + const MAX_ENDORSER_COUNT + const MAX_PROPOSER_COUNT + const VRF_SIZE + var NilVRF = VRFValue + var Version uint32 = 1 + func GenesisConsensusPayload(txhash common.Uint256, height uint32) ([]byte, error) + func Pubkey(nodeid string) (keypair.PublicKey, error) + func PubkeyID(pub keypair.PublicKey) string + func VerifyChainConfig(cfg *ChainConfig) error + type ChainConfig struct + BlockMsgDelay time.Duration + C uint32 + HashMsgDelay time.Duration + MaxBlockChangeView uint32 + N uint32 + PeerHandshakeTimeout time.Duration + Peers []*PeerConfig + PosTable []uint32 + Version uint32 + View uint32 + func GenesisChainConfig(conf *config.VBFTConfig, peers []*config.VBFTPeerStakeInfo, ...) (*ChainConfig, error) + func (cc *ChainConfig) Hash() common.Uint256 + func (cc *ChainConfig) Serialize(w io.Writer) error + type PeerConfig struct + ID string + Index uint32 + func (pc *PeerConfig) Deserialize(r io.Reader) error + func (pc *PeerConfig) Serialize(w io.Writer) error + type VRFValue [VRF_SIZE]byte + func (v VRFValue) Bytes() []byte + func (v VRFValue) IsNil() bool + type VbftBlockInfo struct + LastConfigBlockNum uint32 + NewChainConfig *ChainConfig + Proposer uint32 + VrfProof []byte + VrfValue []byte + func VbftBlock(header *types.Header) (*VbftBlockInfo, error)