The goal of this refactoring is to better encapsulate internals of the ecdsa library in a single module (in anticipation for removing that dependency later), and improve the general code quality.
The `ECKey` class is renamed into `ECPrivkey` and now inherits `ECPubkey`. The code of the ECPrivkey is massaged into a better shape.
The encrypt_message methods is moved to the public key class and no longer needs a public key to be passed as an argument, which makes more sense.
The `MySigningKey` class, which is a wrapper around `ecdsa.SigningKey`, is now an implementation details of ecc.py, and is no longer used in transaction.py and unit tests.
This diff is a big chunck of what remains to be split out of D16301.
Depends on D16675