Documentation ¶
Index ¶
- func InstanceParams(membership *trantorpbtypes.Membership) *factorypbtypes.GeneratorParams
- func NewModule(mc ModuleConfig, ppv PreprepareValidator) modules.PassiveModule
- func NewPprepValidatorChkpFactory(mc ModuleConfig, hashImpl crypto.HashImpl, chkpVerifier checkpoint.Verifier, ...) modules.PassiveModule
- type CheckpointPreprepareValidator
- type ModuleConfig
- type PermissivePreprepareValidator
- type PreprepareValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstanceParams ¶
func InstanceParams( membership *trantorpbtypes.Membership, ) *factorypbtypes.GeneratorParams
func NewModule ¶
func NewModule(mc ModuleConfig, ppv PreprepareValidator) modules.PassiveModule
NewModule returns a passive module for the PreprepareValidator module.
func NewPprepValidatorChkpFactory ¶
func NewPprepValidatorChkpFactory(mc ModuleConfig, hashImpl crypto.HashImpl, chkpVerifier checkpoint.Verifier, configOffset int, logger logging.Logger, ) modules.PassiveModule
Types ¶
type CheckpointPreprepareValidator ¶
type CheckpointPreprepareValidator struct { HashImpl crypto.HashImpl CertVerifier checkpoint.Verifier Membership *trantorpbtypes.Membership // contains filtered or unexported fields }
func NewCheckpointValidityChecker ¶
func NewCheckpointValidityChecker( hashImpl crypto.HashImpl, certVerifier checkpoint.Verifier, membership *trantorpbtypes.Membership, configOffset int, logger logging.Logger, ) *CheckpointPreprepareValidator
func (*CheckpointPreprepareValidator) Check ¶
func (cv *CheckpointPreprepareValidator) Check(preprepare *pbftpbtypes.Preprepare) error
type PermissivePreprepareValidator ¶
type PermissivePreprepareValidator struct{}
func NewPermissiveValidityChecker ¶
func NewPermissiveValidityChecker() *PermissivePreprepareValidator
func (*PermissivePreprepareValidator) Check ¶
func (ppv *PermissivePreprepareValidator) Check(preprepare *pbftpbtypes.Preprepare) error
type PreprepareValidator ¶
type PreprepareValidator interface { // Check verifies the validity of the checkpoint // Returns nil on success (i.e., if the given signature is valid) and a non-nil error otherwise. Check(preprepare *pbftpbtypes.Preprepare) error }
PreprepareValidator is the interface of an external checker of validity of proposed data.
Click to show internal directories.
Click to hide internal directories.