Documentation ¶
Index ¶
- Constants
- func AddConsensusArgstoBlock(block *common.Block, level uint64, txRWSet *common.TxRWSet) error
- func AddQCtoBlock(block *common.Block, qc []byte) error
- func GetConsensusArgsFromBlock(block *common.Block) (*consensus.BlockHeaderConsensusArgs, error)
- func GetLevelFromBlock(block *common.Block) (uint64, error)
- func GetLevelFromQc(block *common.Block) (uint64, error)
- func GetQCFromBlock(block *common.Block) []byte
- func SignBlock(block *common.Block, hashType string, signer protocol.SigningMember) error
- func SignConsensusMsg(msg *maxbftpb.ConsensusMsg, hashType string, signer protocol.SigningMember) error
- func VerifyConsensusMsgSign(msg *maxbftpb.ConsensusMsg, ac protocol.AccessControlProvider) error
- func VerifyDataSign(data []byte, signEnrty *common.EndorsementEntry, ...) error
- func VerifyTimeConfig(detail string, t uint64) error
Constants ¶
View Source
const InvalidIndex = math.MaxUint32
Variables ¶
This section is empty.
Functions ¶
func AddConsensusArgstoBlock ¶
AddConsensusArgstoBlock add consensus args to block
func AddQCtoBlock ¶
AddQCtoBlock add qc to block
func GetConsensusArgsFromBlock ¶
func GetConsensusArgsFromBlock(block *common.Block) (*consensus.BlockHeaderConsensusArgs, error)
GetConsensusArgsFromBlock get args from block
func GetLevelFromBlock ¶
GetLevelFromBlock get level from block
func GetLevelFromQc ¶
GetLevelFromQc get level from qc
func GetQCFromBlock ¶
GetQCFromBlock get qc from block
func SignConsensusMsg ¶
func SignConsensusMsg(msg *maxbftpb.ConsensusMsg, hashType string, signer protocol.SigningMember) error
SignConsensusMsg signs the consensus msg using given key
func VerifyConsensusMsgSign ¶
func VerifyConsensusMsgSign(msg *maxbftpb.ConsensusMsg, ac protocol.AccessControlProvider) error
VerifyConsensusMsgSign verify the consensus msg sign
func VerifyDataSign ¶
func VerifyDataSign(data []byte, signEnrty *common.EndorsementEntry, ac protocol.AccessControlProvider) error
VerifyDataSign verify the data with EndorsementEntry, ac, org
func VerifyTimeConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.