Documentation ¶
Index ¶
- func IsSysCC(name string) bool
- func IsSysCCAndNotInvokableCC2CC(name string) bool
- func IsSysCCAndNotInvokableExternal(name string) bool
- type Capabilities
- type ChannelResources
- type Context
- type IdentityDeserializer
- type Mapper
- type Plugin
- type PluginFactory
- type PluginValidator
- type PolicyEvaluator
- type QueryExecutorCreator
- type ResultsIteratorImpl
- type Semaphore
- type StateFetcherImpl
- type StateImpl
- type TxValidator
- type VsccValidatorImpl
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Capabilities ¶
type Capabilities interface { vc.Capabilities }
type ChannelResources ¶
type ChannelResources interface { Ledger() ledger.PeerLedger MSPManager() msp.MSPManager Apply(configtx *common.ConfigEnvelope) error GetMSPIDs() []string Capabilities() channelconfig.ApplicationCapabilities }
type Context ¶
type IdentityDeserializer ¶
type IdentityDeserializer interface { msp.IdentityDeserializer }
type Plugin ¶
type Plugin interface { validation.Plugin }
type PluginFactory ¶
type PluginFactory interface { validation.PluginFactory }
type PluginValidator ¶
type PluginValidator struct { sync.Mutex vp.Mapper QueryExecutorCreator msp.IdentityDeserializer // contains filtered or unexported fields }
func NewPluginValidator ¶
func NewPluginValidator(pm vp.Mapper, qec QueryExecutorCreator, deserializer msp.IdentityDeserializer, capabilities vc.Capabilities) *PluginValidator
func (*PluginValidator) ValidateWithPlugin ¶
func (pv *PluginValidator) ValidateWithPlugin(ctx *Context) error
type PolicyEvaluator ¶
type PolicyEvaluator struct {
msp.IdentityDeserializer
}
func (*PolicyEvaluator) DeserializeIdentity ¶
func (id *PolicyEvaluator) DeserializeIdentity(serializedIdentity []byte) (vi.Identity, error)
func (*PolicyEvaluator) Evaluate ¶
func (id *PolicyEvaluator) Evaluate(policyBytes []byte, signatureSet []*protoutil.SignedData) error
type QueryExecutorCreator ¶
type QueryExecutorCreator interface {
NewQueryExecutor() (ledger.QueryExecutor, error)
}
type ResultsIteratorImpl ¶
type ResultsIteratorImpl struct {
ledger2.ResultsIterator
}
func (*ResultsIteratorImpl) Next ¶
func (it *ResultsIteratorImpl) Next() (vs.QueryResult, error)
type StateFetcherImpl ¶
type StateFetcherImpl struct {
QueryExecutorCreator
}
func (*StateFetcherImpl) FetchState ¶
func (sf *StateFetcherImpl) FetchState() (vs.State, error)
type StateImpl ¶
type StateImpl struct {
ledger.QueryExecutor
}
func (*StateImpl) GetStateRangeScanIterator ¶
type TxValidator ¶
type TxValidator struct { ChannelID string Semaphore Semaphore ChannelResources ChannelResources Vscc vsccValidator }
func NewTxValidator ¶
func NewTxValidator(channelID string, sem Semaphore, cr ChannelResources, pm plugin.Mapper) *TxValidator
type VsccValidatorImpl ¶
type VsccValidatorImpl struct {
// contains filtered or unexported fields
}
func (*VsccValidatorImpl) GetInfoForValidate ¶
func (v *VsccValidatorImpl) GetInfoForValidate(chdr *common.ChannelHeader, ccID string) (*sysccprovider.ChaincodeInstance, *sysccprovider.ChaincodeInstance, []byte, error)
func (*VsccValidatorImpl) VSCCValidateTx ¶
func (v *VsccValidatorImpl) VSCCValidateTx(seq int, payload *common.Payload, envBytes []byte, block *common.Block) (error, peer.TxValidationCode)
func (*VsccValidatorImpl) VSCCValidateTxForCC ¶
func (v *VsccValidatorImpl) VSCCValidateTxForCC(ctx *Context) error
Click to show internal directories.
Click to hide internal directories.