Closed arniu closed 2 years ago
But in more practical terms about this repo?
There are two cases in the repo, which convert different failures to simple InvalidRsaKey
errors. As a result, it's difficult to debug. For example, #151 .
Parse key every signing! Maybe move to
EncodingKey
?
InvalidRsaKey
here is weired.
ah I see, that should be easy to fix in the v8 branch. It was probably copied from the ring docs example.
map_err(|_| ...)
is an anti-pattern, which lose detail about the failure.