go-crypto
go-crypto copied to clipboard
Fix openpgp.MessageDetails footguns
openpgp.MessageDetails is very easy to mis-use.
Ref https://github.com/emersion/go-pgpmail/issues/5
Hey :wave: Yeah, I agree. One thing we could do, in a relatively backward-compatible way, is add a new IsVerified property, which would be set to true after the body has been read and the signature has been successfully verified. That would offer a more explicit and indeed less error-prone way to check signature verification. Other suggestions and/or a PR would be welcome :blush: