Key.generateKey overrides key set by constructor
Currently using Key.generateKey
is cumbersome. Its purpose is to generate a new pgp private key and assign some meta data to it. Because the function is not static, __init__
has to be called first, which also creates a private pgp key. Also, this key gets overridden calling generateKey
. So there is no chance to add meta information to a key that has been set by the constructor. There are two options here:
- declare
generateKey
such that it can be called without using the constructor first - "merge" the content from
generateKey
into the constructor (breaking changes)