fabric: github.com/hyperledger/fabric/core/handlers/validation/builtin/v12 Index | Files | Directories

package v12

import "github.com/hyperledger/fabric/core/handlers/validation/builtin/v12"

Index

Package Files

validation_logic.go

Constants

const AllowedCharsCollectionName = "[A-Za-z0-9_-]+"
const (
    DUPLICATED_IDENTITY_ERROR = "Endorsement policy evaluation failure might be caused by duplicated identities"
)

type Capabilities Uses

type Capabilities interface {
    vc.Capabilities
}

Capabilities is the local interface that used to generate mocks for foreign interface.

type IdentityDeserializer Uses

type IdentityDeserializer interface {
    vi.IdentityDeserializer
}

IdentityDeserializer is the local interface that used to generate mocks for foreign interface.

type PolicyEvaluator Uses

type PolicyEvaluator interface {
    vp.PolicyEvaluator
}

PolicyEvaluator is the local interface that used to generate mocks for foreign interface.

type StateFetcher Uses

type StateFetcher interface {
    vs.StateFetcher
}

StateFetcher is the local interface that used to generate mocks for foreign interface.

type Validator Uses

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

Validator 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 Uses

func New(c vc.Capabilities, s vs.StateFetcher, d vi.IdentityDeserializer, pe vp.PolicyEvaluator) *Validator

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

func (*Validator) Validate Uses

func (vscc *Validator) Validate(
    block *common.Block,
    namespace string,
    txPosition int,
    actionPosition int,
    policyBytes []byte,
) commonerrors.TxValidationError

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

func (*Validator) ValidateLSCCInvocation Uses

func (vscc *Validator) ValidateLSCCInvocation(
    chid string,
    env *common.Envelope,
    cap *pb.ChaincodeActionPayload,
    payl *common.Payload,
    ac vc.Capabilities,
) commonerrors.TxValidationError

Directories

PathSynopsis
mocksCode generated by counterfeiter.

Package v12 imports 20 packages (graph) and is imported by 1 packages. Updated 2020-01-28. Refresh now. Tools for package owners.