...

Package keylevelep

import "github.com/hyperledger/fabric/integration/chaincode/keylevelep"
Overview
Index
Subdirectories

Overview ▾

type EndorsementCC

EndorsementCC 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

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

type EndorsementCC struct {
}

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

Subdirectories

Name Synopsis
..
cmd