Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationCapabilities ¶
type ApplicationCapabilities interface { channelconfig.ApplicationCapabilities }
type CapabilityProvider ¶
type CapabilityProvider interface { // Capabilities defines the capabilities for the application portion of this channel Capabilities() channelconfig.ApplicationCapabilities }
CapabilityProvider contains functions to retrieve capability information for a channel
type QueryExecutor ¶
type QueryExecutor interface { ledger.QueryExecutor }
type Support ¶
type Support interface { // Ledger returns the ledger associated with this validator Ledger() ledger.PeerLedger // MSPManager returns the MSP manager for this chain MSPManager() msp.MSPManager // Apply attempts to apply a configtx to become the new config Apply(configtx *common.ConfigEnvelope) error // GetMSPIDs returns the IDs for the application MSPs // that have been defined in the channel GetMSPIDs(cid string) []string }
Support provides all of the needed to evaluate the VSCC
type VSCCEndorsementPolicyError ¶
type VSCCEndorsementPolicyError struct {
// contains filtered or unexported fields
}
VSCCEndorsementPolicyError error to mark transaction failed endrosement policy check
func (VSCCEndorsementPolicyError) Error ¶
func (e VSCCEndorsementPolicyError) Error() string
Error returns reasons which lead to the failure
type VSCCExecutionFailureError ¶
type VSCCExecutionFailureError struct {
// contains filtered or unexported fields
}
VSCCExecutionFailureError error to indicate failure during attempt of executing VSCC endorsement policy check
func (VSCCExecutionFailureError) Error ¶
func (e VSCCExecutionFailureError) Error() string
Error returns reasons which lead to the failure
type VSCCInfoLookupFailureError ¶
type VSCCInfoLookupFailureError struct {
// contains filtered or unexported fields
}
VSCCInfoLookupFailureError error to indicate inability to obtain VSCC information from LCCC
func (VSCCInfoLookupFailureError) Error ¶
func (e VSCCInfoLookupFailureError) Error() string
Error returns reasons which lead to the failure
type ValidationRouter ¶
type ValidationRouter struct { CapabilityProvider V20Validator Validator V14Validator Validator }
ValidationRouter dynamically invokes the appropriate validator depending on the capabilities that are currently enabled in the channel.
type Validator ¶
Validator interface which defines API to validate block transactions and return the bit array mask indicating invalid transactions which didn't pass validation.
func NewTxValidator ¶
NewTxValidator creates new transactions validator