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

Function key_to_p2wpkh

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

Source from the content-addressed store, hash-verified

135 return program_to_witness(0, sha256(script), main)
136
137def key_to_p2wpkh(key, main=False, **kwargs):
138 key = check_key(key)
139 return program_to_witness(0, hash160(key), main, **kwargs)
140
141def script_to_p2sh_p2wsh(script, main=False):
142 script = check_script(script)

Callers 6

test_double_spendMethod · 0.90
run_testMethod · 0.90
getnewdestinationFunction · 0.90
get_keyFunction · 0.90
get_generate_keyFunction · 0.90
create_witness_txFunction · 0.70

Calls 3

check_keyFunction · 0.70
program_to_witnessFunction · 0.70
hash160Function · 0.70

Tested by 1

test_double_spendMethod · 0.72