Documentation ¶
Index ¶
Constants ¶
View Source
const (
DUPLICATED_IDENTITY_ERROR = "Endorsement policy evaluation failure might be caused by duplicated identities"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
验证程序实现默认事务验证策略, 检查读写设置和背书的正确性 针对作为参数提供给 每次调用
func New ¶
func New(c Capabilities, s StateFetcher, d IdentityDeserializer, pe PolicyEvaluator) *Validator
新建创建默认VSCC的新实例 通常,每个对等机只调用一次。
func (*Validator) Validate ¶
func (vscc *Validator) Validate( block *common.Block, namespace string, txPosition int, actionPosition int, policyBytes []byte, ) commonerrors.TxValidationError
validate验证与带有背书的交易相对应的给定信封 以其序列化形式提供的策略
func (*Validator) ValidateLSCCInvocation ¶
func (vscc *Validator) ValidateLSCCInvocation( chid string, env *common.Envelope, cap *pb.ChaincodeActionPayload, payl *common.Payload, ac channelconfig.ApplicationCapabilities, ) commonerrors.TxValidationError
Click to show internal directories.
Click to hide internal directories.