The from_str() function has a weakness with respect to base64 encoding errors. This commit provides an inelegant fix. Better would be to refactor prefix parsing so error handling isn't used for normal code flow. Base64 error handling should at least be done in one place.
The from_str() function has a weakness with respect to base64 encoding errors. This commit provides an inelegant fix. Better would be to refactor prefix parsing so error handling isn't used for normal code flow. Base64 error handling should at least be done in one place.