code: func checkSpec(spec *pb.ChaincodeSpec) error {
  	// Don't allow nil value
  	if spec == nil {
  		return errors.New("expected chaincode specification, nil received")
  	}
  
  	return platformRegistry.ValidateSpec(spec.CCType(), spec.Path())
  }
docs: // checkSpec to see if chaincode resides within current package capture for language.