Key workflow
After constructing a Key object, an uid has to be added to it. Otherwise it is not usable. Encrypting a message fails: pgpy.errors.PGPError: Key is not complete - please add a User ID!
. An uid can be added using generateKey
(confusing name) or by using the pgpy api.
What mostly bothers me is that naming and documentation are wrong.
Update: Calling addKeyExpiration
without calling generateKey
first crashes, because self.uid does not exist.
Edited by GromeTT