Closed DPJacques closed 1 year ago
Hey Darren,
thank you for this PR. Can you open an issue instead and describe your use case in more details?
We mostly don't want to expose it like this; it might be that we want to distinguish sub cases even more. Instead, we might provide a method which allows you to distinguish, but it would be useful to know why you want this more.
This allows use of
errors.Is(err, signature.ErrInvalidSignature)
rather thanstrings.Contains(err.Error(), "verifier_factory: invalid signature")