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

Function key_to_p2pkh

test/functional/test_framework/address.py:112–114  ·  view source on GitHub ↗
(key, main=False, **kwargs)

Source from the content-addressed store, hash-verified

110 return byte_to_base58(hash, version)
111
112def key_to_p2pkh(key, main=False, **kwargs):
113 key = check_key(key)
114 return keyhash_to_p2pkh(hash160(key), main, **kwargs)
115
116def script_to_p2sh(script, main=False, prefix=75):
117 script = check_script(script)

Callers 5

run_testMethod · 0.90
run_testMethod · 0.90
getnewdestinationFunction · 0.90
get_keyFunction · 0.90
get_generate_keyFunction · 0.90

Calls 3

check_keyFunction · 0.70
keyhash_to_p2pkhFunction · 0.70
hash160Function · 0.70

Tested by

no test coverage detected