MCPcopy Create free account
hub / github.com/ElementsProject/elements / bytes_to_wif

Function bytes_to_wif

test/functional/test_framework/wallet_util.py:133–136  ·  view source on GitHub ↗
(b, compressed=True)

Source from the content-addressed store, hash-verified

131 raise AssertionError("key {} value {} did not match expected value {}".format(key, addr_info[key], value))
132
133def bytes_to_wif(b, compressed=True):
134 if compressed:
135 b += b'\x01'
136 return byte_to_base58(b, 239)
137
138def generate_wif_key():
139 # Makes a WIF privkey for imports

Callers 12

test_external_inputsMethod · 0.90
test_double_spendMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90
get_keysMethod · 0.90
witness_script_testMethod · 0.90
get_generate_keyFunction · 0.85
generate_keypairFunction · 0.85
generate_wif_keyFunction · 0.85

Calls 1

byte_to_base58Function · 0.90

Tested by 2

test_external_inputsMethod · 0.72
test_double_spendMethod · 0.72