code: func GetChaincodePackageBytes(pr *platforms.Registry, spec *pb.ChaincodeSpec) ([]byte, error) {
  	if spec == nil || spec.ChaincodeId == nil {
  		return nil, fmt.Errorf("invalid chaincode spec")
  	}
  
  	return pr.GetDeploymentPayload(spec.CCType(), spec.Path())
  }
docs: // GetChaincodePackageBytes creates bytes for docker container generation using the supplied chaincode specification