Versions in this module Expand all Collapse all v1 v1.4.6 Feb 25, 2020 Changes in this version + type Context struct + Block *common.Block + Channel string + Envelope []byte + Namespace string + Policy []byte + Seq int + TxID string + VSCCName string + func (c Context) String() string + type MapBasedPluginMapper map[string]validation.PluginFactory + func (m MapBasedPluginMapper) PluginFactoryByName(name PluginName) validation.PluginFactory + type PluginMapper interface + PluginFactoryByName func(name PluginName) validation.PluginFactory + type PluginName string + type PluginValidator struct + func NewPluginValidator(pm PluginMapper, qec QueryExecutorCreator, ...) *PluginValidator + func (pv *PluginValidator) ValidateWithPlugin(ctx *Context) error + type PolicyEvaluator struct + func (id *PolicyEvaluator) DeserializeIdentity(serializedIdentity []byte) (Identity, error) + func (id *PolicyEvaluator) Evaluate(policyBytes []byte, signatureSet []*common.SignedData) error + type QueryExecutorCreator interface + NewQueryExecutor func() (ledger.QueryExecutor, error) + type ResultsIteratorImpl struct + func (it *ResultsIteratorImpl) Next() (QueryResult, error) + type SerializedPolicy []byte + func (sp SerializedPolicy) Bytes() []byte + type StateFetcherImpl struct + func (sf *StateFetcherImpl) FetchState() (State, error) + type StateImpl struct + func (s *StateImpl) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (ResultsIterator, error) + type Support interface + Acquire func(ctx context.Context, n int64) error + Apply func(configtx *common.ConfigEnvelope) error + Capabilities func() channelconfig.ApplicationCapabilities + GetMSPIDs func(cid string) []string + Ledger func() ledger.PeerLedger + MSPManager func() msp.MSPManager + Release func(n int64) + type TxValidator struct + ChainID string + Support Support + Vscc vsccValidator + func NewTxValidator(chainID string, support Support, sccp sysccprovider.SystemChaincodeProvider, ...) *TxValidator + func (v *TxValidator) Validate(block *common.Block) error + type Validator interface + Validate func(block *common.Block) error + type VsccValidatorImpl struct + func (v *VsccValidatorImpl) GetInfoForValidate(chdr *common.ChannelHeader, ccID string) (*sysccprovider.ChaincodeInstance, *sysccprovider.ChaincodeInstance, []byte, ...) + func (v *VsccValidatorImpl) VSCCValidateTx(seq int, payload *common.Payload, envBytes []byte, block *common.Block) (error, peer.TxValidationCode) + func (v *VsccValidatorImpl) VSCCValidateTxForCC(ctx *Context) error