[bitcoin/bitcoin] contrib: Adjust output to current test format (#13935)

This script requires «`segwit_addr.py«` known as BIP173 Reference implementations for Python.
(See https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki#Reference_implementations )
Since it is included in test_framework, we can execute as follows:

«`
$ PYTHONPATH=../../test/functional/test_framework ./gen_key_io_test_vectors.py valid 50 > ../../src/test/data/key_io_keys_valid.json
«`

Добавить комментарий