You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey 👋 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 😊
emersion
added a commit
to emersion/go-crypto
that referenced
this issue
Jan 7, 2022
It's invalid for library users to look at MessageDetails.SignatureError
before the OpenPGP message is fully read. Populate it with an error
(cleared once the message is fully read).
This is technically a breaking change, but code looking at
SignatureError before the full message is read is broken anyways.
References: ProtonMail#92
openpgp.MessageDetails
is very easy to mis-use.Ref emersion/go-pgpmail#5
The text was updated successfully, but these errors were encountered: