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

Function generate_wif_key

test/functional/test_framework/wallet_util.py:138–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 return byte_to_base58(b, 239)
137
138def generate_wif_key():
139 # Makes a WIF privkey for imports
140 k = ECKey()
141 k.generate()
142 return bytes_to_wif(k.get_bytes(), k.is_compressed)

Callers 1

run_testMethod · 0.90

Calls 4

generateMethod · 0.95
get_bytesMethod · 0.95
ECKeyClass · 0.90
bytes_to_wifFunction · 0.85

Tested by

no test coverage detected