Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
138
def
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_test
Method · 0.90
Calls
4
generate
Method · 0.95
get_bytes
Method · 0.95
ECKey
Class · 0.90
bytes_to_wif
Function · 0.85
Tested by
no test coverage detected