Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndorsementCC ¶
type EndorsementCC struct { }
EndorsementCC is an example chaincode that uses state-based endorsement. In the init function, it creates a single KVS state "endorsed_state" 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
state's endorsement policy
-) "delorgs": supply a list of MSP IDs that will be removed from
the state's endorsement policy
-) "delep": delete the key-level endorsement policy for the state altogether -) "listorgs": list the orgs included in the state's endorsement policy
func (*EndorsementCC) Init ¶
func (cc *EndorsementCC) Init(stub shim.ChaincodeStubInterface) pb.Response
Init callback
func (*EndorsementCC) Invoke ¶
func (cc *EndorsementCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response
Invoke dispatcher
Click to show internal directories.
Click to hide internal directories.