builtin

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

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 DefaultValidation

type DefaultValidation struct {
	TxValidator TransactionValidator
}

func (*DefaultValidation) Init

func (v *DefaultValidation) Init(dependencies ...validation.Dependency) error

func (*DefaultValidation) Validate

func (v *DefaultValidation) Validate(block *common.Block, namespace string, txPosition int, actionPosition int, contextData ...validation.ContextDatum) error

type DefaultValidationFactory

type DefaultValidationFactory struct {
}

func (*DefaultValidationFactory) New

func (*DefaultValidationFactory) New() validation.Plugin

type TransactionValidator

type TransactionValidator interface {
	Validate(txData []byte, policy []byte) commonerrors.TxValidationError
}

type ValidatorOneValidSignature

type ValidatorOneValidSignature struct {
	// contains filtered or unexported fields
}

ValidatorOneValidSignature implements the default transaction validation policy, which is to check the correctness of the read-write set and the endorsement signatures against an endorsement policy that is supplied as argument to every invoke

func New

func New(c Capabilities, s StateFetcher, d IdentityDeserializer, pe PolicyEvaluator) *ValidatorOneValidSignature

New creates a new instance of the default VSCC Typically this will only be invoked once per peer

func (*ValidatorOneValidSignature) Validate

func (vscc *ValidatorOneValidSignature) Validate(envelopeBytes []byte, policyBytes []byte) commonerrors.TxValidationError

Validate validates the given envelope corresponding to a transaction with an endorsement policy as given in its serialized form

func (*ValidatorOneValidSignature) ValidateLSCCInvocation

Directories

Path Synopsis
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL