the string-encoded bytesd
a regex which matches valid encodings of bytes with an expected fixed size. This pattern is expected to have groups separately matching each of the supported encodings. See PRIVATE_KEY_REGEX for an example.
a description of the match groups in the regex, in the order they should be checked.
Optional
errorMessage: stringhuman-readable message for error thrown if decoding fails.
TypeError if the pattern doesn't match
Generated using TypeDoc
Decodes cryptographic bytes from a string, auto-determining the encoding based on the input length and character set.