At the moment it is quite easy to inadvertently leak a private key when using BaseKey.as_dict() or KeySet.as_dict(). These method return private key information by default. To prevent this I'd suggest changing the default of the private param for as_dict() to False instead of None (which is True effectively).
At the moment it is quite easy to inadvertently leak a private key when using
BaseKey.as_dict()orKeySet.as_dict(). These method return private key information by default. To prevent this I'd suggest changing the default of theprivateparam foras_dict()toFalseinstead ofNone(which isTrueeffectively).