BTCP-Rebase/contrib/testgen
Akio Nakamura a9910d82c3 contrib: Adjust output to current test format
Ajust the outputs of gen_base58_test_vectors.py to current test format.

1. Add bech32 vector generation.
2. Add Script-fragments to hexrepr in the format expected by the test.
3. Modify the metadata.
  1) Change 'isTestnet' to 'chain' (main/test/regtest)
  2) Remove 'addrType'
  3) Add 'tryCaseFlip' (True/False on bech32)
2018-08-27 20:14:47 +09:00
..
README.md contrib: Adjust output to current test format 2018-08-27 20:14:47 +09:00
base58.py Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
gen_key_io_test_vectors.py contrib: Adjust output to current test format 2018-08-27 20:14:47 +09:00

README.md

TestGen

Utilities to generate test vectors for the data-driven Bitcoin tests.

Usage:

PYTHONPATH=../../test/functional/test_framework ./gen_key_io_test_vectors.py valid 50 > ../../src/test/data/key_io_keys_valid.json
PYTHONPATH=../../test/functional/test_framework ./gen_key_io_test_vectors.py invalid 50 > ../../src/test/data/key_io_keys_invalid.json