Documentation ¶
Index ¶
- func NewV13Evaluator(policySupport validation.PolicyEvaluator, ...) *policyCheckerFactoryV13
- func NewV20Evaluator(vpmgr KeyLevelValidationParameterManager, ...) *policyCheckerFactoryV20
- type CollectionResources
- type KeyLevelValidationParameterManager
- type KeyLevelValidationParameterManagerImpl
- func (m *KeyLevelValidationParameterManagerImpl) ExtractValidationParameterDependency(blockNum, txNum uint64, rwsetBytes []byte)
- func (m *KeyLevelValidationParameterManagerImpl) GetValidationParameterForKey(cc, coll, key string, blockNum, txNum uint64) ([]byte, error)
- func (m *KeyLevelValidationParameterManagerImpl) SetTxValidationResult(ns string, blockNum, txNum uint64, err error)
- type KeyLevelValidator
- func (klv *KeyLevelValidator) PostValidate(cc string, blockNum, txNum uint64, err error)
- func (klv *KeyLevelValidator) PreValidate(txNum uint64, block *common.Block)
- func (klv *KeyLevelValidator) Validate(cc string, blockNum, txNum uint64, rwsetBytes, prp, ccEP []byte, ...) commonerrors.TxValidationError
- type PolicyTranslator
- type RWSetPolicyEvaluator
- type RWSetPolicyEvaluatorFactory
- type StateBasedValidator
- type ValidationParameterUpdatedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewV13Evaluator ¶
func NewV13Evaluator(policySupport validation.PolicyEvaluator, vpmgr KeyLevelValidationParameterManager) *policyCheckerFactoryV13
func NewV20Evaluator ¶
func NewV20Evaluator( vpmgr KeyLevelValidationParameterManager, policySupport validation.PolicyEvaluator, collRes CollectionResources, StateFetcher s.StateFetcher, ) *policyCheckerFactoryV20
Types ¶
type CollectionResources ¶
type KeyLevelValidationParameterManagerImpl ¶
type KeyLevelValidationParameterManagerImpl struct { StateFetcher validation.StateFetcher PolicyTranslator PolicyTranslator // contains filtered or unexported fields }
func (*KeyLevelValidationParameterManagerImpl) ExtractValidationParameterDependency ¶
func (m *KeyLevelValidationParameterManagerImpl) ExtractValidationParameterDependency(blockNum, txNum uint64, rwsetBytes []byte)
func (*KeyLevelValidationParameterManagerImpl) GetValidationParameterForKey ¶
func (m *KeyLevelValidationParameterManagerImpl) GetValidationParameterForKey(cc, coll, key string, blockNum, txNum uint64) ([]byte, error)
func (*KeyLevelValidationParameterManagerImpl) SetTxValidationResult ¶
func (m *KeyLevelValidationParameterManagerImpl) SetTxValidationResult(ns string, blockNum, txNum uint64, err error)
type KeyLevelValidator ¶
type KeyLevelValidator struct {
// contains filtered or unexported fields
}
func NewKeyLevelValidator ¶
func NewKeyLevelValidator(evaluator RWSetPolicyEvaluatorFactory, vpmgr KeyLevelValidationParameterManager) *KeyLevelValidator
func (*KeyLevelValidator) PostValidate ¶
func (klv *KeyLevelValidator) PostValidate(cc string, blockNum, txNum uint64, err error)
func (*KeyLevelValidator) PreValidate ¶
func (klv *KeyLevelValidator) PreValidate(txNum uint64, block *common.Block)
func (*KeyLevelValidator) Validate ¶
func (klv *KeyLevelValidator) Validate(cc string, blockNum, txNum uint64, rwsetBytes, prp, ccEP []byte, endorsements []*peer.Endorsement) commonerrors.TxValidationError
type PolicyTranslator ¶
type RWSetPolicyEvaluator ¶
type RWSetPolicyEvaluator interface {
Evaluate(blockNum, txNum uint64, NsRwSets []*rwsetutil.NsRwSet, ns string, sd []*protoutil.SignedData) commonerrors.TxValidationError
}
type RWSetPolicyEvaluatorFactory ¶
type RWSetPolicyEvaluatorFactory interface {
Evaluator(ccEP []byte) RWSetPolicyEvaluator
}
type StateBasedValidator ¶
type StateBasedValidator interface { PreValidate(ch, cc string, blockNum, txNum uint64, rwset []byte) error Validate(ch, cc string, blockNum, txNum uint64, rwset, prp, ep []byte, endorsements []*peer.Endorsement) error PostValidate(ch, cc string, blockNum, txNum uint64, vc peer.TxValidationCode) error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.