WebOfTrust / cesrox

Rust implementation of core CESR encoding format. A bridge to the beautiful island.
Apache License 2.0
2 stars 8 forks source link

Propose better handling for base64 encoding errors. #12

Open jimmartintv opened 1 year ago

jimmartintv commented 1 year ago

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.