code: func (ccpack *SignedCDSPackage) GetChaincodeData() *ChaincodeData {
  	//this has to be after creating a package and initializing it
  	//If those steps fail, GetChaincodeData() should never be called
  	if ccpack.depSpec == nil || ccpack.datab == nil || ccpack.id == nil {
  		panic("GetChaincodeData called on uninitialized package")
  	}
  
  	var instPolicy []byte
  	if ccpack.sDepSpec != nil {
  		instPolicy = ccpack.sDepSpec.InstantiationPolicy
  	}
  
  	return &ChaincodeData{
  		Name:                ccpack.depSpec.ChaincodeSpec.ChaincodeId.Name,
  		Version:             ccpack.depSpec.ChaincodeSpec.ChaincodeId.Version,
  		Data:                ccpack.datab,
  		Id:                  ccpack.id,
  		InstantiationPolicy: instPolicy,
  	}
  }
docs: // GetChaincodeData gets the ChaincodeData