This PR removes the redundant base58 implementation contrib/testgen/base58.py for the test generation script gen_key_io_test_vectors.py and uses the one from the test framework instead. Additionally, three other cleanups/improvements are done:
- import script operator constants
OP_*from test framework instead of manually defining them - add Python path to test framework directly in the script (via
sys.path.append(...)) instead of needing the caller to specifyPYTHONPATH=...on the command line (the same approach is done for the signet miner and the message capture scripts) - rename
charstob58charsin the test_framework.address module (is more explicit and makes the diff for the base58 replacement smaller)