vscc

package
v0.0.0-...-fe0f572 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 20 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 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 (*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 that the transaction in the supplied envelope contains endorsements (that is. signatures from entities) that comply with the supplied endorsement policy. @return a successful Response (code 200) in case of success, or an error otherwise 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

Jump to

Keyboard shortcuts

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