Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
crypto: document error behavior for Signer.PublicKey & Decrypter.PublicKey #30510
crypto.Decrypter and the similar crypto.Signer both define
An implementation of
With this in mind my requests are:
I tried coming up with some wording for this, but in fact I don't think an implementation of Signer or Decrypter that can't provide the public key will work anywhere. That might have been a mistake, but it's too late to change.
When I had situations like this I wrote wrappers that take the public key from configuration.