keybase / saltpack

a modern crypto messaging format
https://saltpack.org/
BSD 3-Clause "New" or "Revised" License
989 stars 62 forks source link

signcrypt: Fix no sender error #77

Closed gabriel closed 5 years ago

gabriel commented 5 years ago

If you try to signcrypt open and the sender signing key doesn't exist in the keyring, it panics. Instead it should return a ErrNoSenderKey error.

We also change the ErrNoSenderKey value to a type, and include the sender bytes. This allows clients to show to the user which sender key was missing.

maxtaco commented 5 years ago

Thanks @gabriel !