{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package keylevelep\n\n## Types\n\n```go\ntype EndorsementCC struct {\n}\n```\nEndorsementCC is an example chaincode that uses state-based endorsement. In the init function, it creates two KVS states, one public, one private, that can then be modified through chaincode functions that use the state-based endorsement chaincode convenience layer. The following chaincode functions are provided: -) \"addorgs\": supply a list of MSP IDs that will be added to the\n\n\tstate's endorsement policy\n\n\\-) \"delorgs\": supply a list of MSP IDs that will be removed from\n\n\tthe state's endorsement policy\n\n\\-) \"delep\": delete the key-level endorsement policy for the state altogether -) \"listorgs\": list the orgs included in the state's endorsement policy\n\n```go\nfunc (cc *EndorsementCC) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit callback\n\n```go\nfunc (cc *EndorsementCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke dispatcher\n\n","path":"github.com/eric-erki/https-hyperledger.org/integration/chaincode/keylevelep","name":"keylevelep","synopsis":"","isRedistributable":true}
