Documentation ¶
Index ¶
Constants ¶
View Source
const AllowedCharsCollectionName = "[A-Za-z0-9_-]+"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capabilities ¶
type Capabilities interface { vc.Capabilities }
type IdentityDeserializer ¶
type IdentityDeserializer interface { vi.IdentityDeserializer }
type PolicyEvaluator ¶
type PolicyEvaluator interface { vp.PolicyEvaluator }
type StateBasedValidator ¶
type StateBasedValidator interface { PreValidate(txNum uint64, block *common.Block) Validate(cc string, blockNum, txNum uint64, rwset, prp, ep []byte, endorsements []*peer.Endorsement) commonerrors.TxValidationError PostValidate(cc string, blockNum, txNum uint64, err error) }
type StateFetcher ¶
type StateFetcher interface { vs.StateFetcher }
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func New ¶
func New(c vc.Capabilities, s vs.StateFetcher, d vi.IdentityDeserializer, pe vp.PolicyEvaluator) *Validator
func (*Validator) Validate ¶
func (vscc *Validator) Validate( block *common.Block, namespace string, txPosition int, actionPosition int, policyBytes []byte, ) commonerrors.TxValidationError
func (*Validator) ValidateLSCCInvocation ¶
func (vscc *Validator) ValidateLSCCInvocation( chid string, env *common.Envelope, cap *pb.ChaincodeActionPayload, payl *common.Payload, ac vc.Capabilities, ) commonerrors.TxValidationError
Click to show internal directories.
Click to hide internal directories.