code: func ValidatePin(pin Pin, v HashAlgoValidation) error {
  	if err := ValidatePackageName(pin.PackageName); err != nil {
  		return err
  	}
  	return ValidateInstanceID(pin.InstanceID, v)
  }
docs: // ValidatePin returns error if package name or instance id are invalid.