func CreateCommercialPaperKey(issuer string, paperNumber string) string {
	return ledgerapi.MakeKey(issuer, paperNumber)
}
CreateCommercialPaperKey creates a key for commercial papers
package commercialpaper
import (
	"encoding/json"
	"fmt"
	ledgerapi "github.com/hyperledger/fabric-chaincode-integration/commercialpaper/ledger-api"
)
type State uint
const (
	ISSUED State = iota + 1
	TRADING
	REDEEMED
)
func (state State) String() string {
	names := []string{"ISSUED", "TRADING", "REDEEMED"}
	if state < ISSUED || state > REDEEMED {
		return "UNKNOWN"
	}
	return names[state-1]
}