Closed peerchemist closed 5 years ago
Hi, do you plan to merge this? I guess it needs an update now to reflect the recent changes.
There are a couple of parts I need to review thoroughly, as soon as I find the time to do that I'll leave you some feedback
All right, I did a quick review of the code, I think it has the following problems:
Address
/ExtendedKey
/PrivateKey
in a mainnet environment and vice versa, unless explicitly specifiedbtcpy
helps you stay safe unless you explicitly specify you don't want to".This PR would, of course, simplify the code but it would remove a layer of safety that I don't think is a good idea to remove.
On an unrelated note, I noticed you also replaced all relative imports with absolute imports. I am not sure what is the reason behind this.
Port of https://github.com/PeerAssets/btcpy/pull/7/commits/ff51e4d58766f9cd9445141f55c9b6626f34d608 from PeerAssets fork.
It greatly simplifies internal state, dropping all
mainnet=None
arguments of various methods through the codebase.