{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.1.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package vscc\n\n## Constants\n\n```go\nconst (\n\tDUPLICATED_IDENTITY_ERROR = \"Endorsement policy evaluation failure might be caused by duplicated identities\"\n)\n```\n\n## Types\n\n```go\ntype ValidatorOneValidSignature struct {\n\t// contains filtered or unexported fields\n}\n```\nValidatorOneValidSignature 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\n\n```go\nfunc (vscc *ValidatorOneValidSignature) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit is called once when the chaincode started the first time\n\n```go\nfunc (vscc *ValidatorOneValidSignature) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke 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\n\n```go\nfunc (vscc *ValidatorOneValidSignature) ValidateLSCCInvocation(\n\tstub shim.ChaincodeStubInterface,\n\tchid string,\n\tenv *common.Envelope,\n\tcap *pb.ChaincodeActionPayload,\n\tpayl *common.Payload,\n\tac channelconfig.ApplicationCapabilities,\n) error\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/core/scc/vscc","name":"vscc","synopsis":"","isRedistributable":true}
