keybase / saltpack

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

SymmetricKeyResolver is optional #76

Closed gabriel closed 5 years ago

gabriel commented 5 years ago

When using signcrypt open, if you don't specify a SymmetricKeyResolver it panics.

Since the resolver is optional, we can check for nil and return, and it returns with a ErrNoDecryptionKey error as expected.