the string to check
Optional
nameForErrorMessages: stringthe name of this value, which is used only for error messages (not checked for legality).
the unmodified input, for easy chaining
TypeError if the format doesn't match
Generated using TypeDoc
Checks that the input matches the proper format for a public key, as given by PUBLIC_KEY_REGEX.