Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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.