vscc

package
v1.0.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func (*ValidatorOneValidSignature) Init

Init is called once when the chaincode started the first time

func (*ValidatorOneValidSignature) Invoke

Invoke is called to validate the specified block of transactions This validation system chaincode will check the read-write set validity and at least 1 correct endorsement. Later we can create more validation system chaincodes to provide more sophisticated policy processing such as enabling policy specification to be coded as a transaction of the chaincode and the client selecting which policy to use for validation using parameter function @return serialized Block of valid and invalid transactions indentified Note that Peer calls this function with 3 arguments, where args[0] is the function name, args[1] is the Envelope and args[2] is the validation policy

func (*ValidatorOneValidSignature) ValidateLSCCInvocation

func (vscc *ValidatorOneValidSignature) ValidateLSCCInvocation(stub shim.ChaincodeStubInterface, chid string, env *common.Envelope, cap *pb.ChaincodeActionPayload, payl *common.Payload) error

Jump to

Keyboard shortcuts

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