MCPcopy
hub / github.com/petertodd/python-bitcoinlib / load_test_vectors

Function load_test_vectors

bitcoin/tests/test_bech32.py:23–26  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

21
22
23def load_test_vectors(name):
24 with open(os.path.dirname(__file__) + '/data/' + name, 'r') as fd:
25 for testcase in json.load(fd):
26 yield testcase
27
28def to_scriptPubKey(witver, witprog):
29 """Decoded bech32 address to script"""

Callers 2

test_encode_decodeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected