MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / script_to_p2sh

Function script_to_p2sh

test/functional/test_framework/address.py:45–47  ·  view source on GitHub ↗
(script, main = False)

Source from the content-addressed store, hash-verified

43 return keyhash_to_p2pkh(hash160(key), main)
44
45def script_to_p2sh(script, main = False):
46 script = check_script(script)
47 return scripthash_to_p2sh(hash160(script), main)
48
49def key_to_p2sh_p2wpkh(key, main = False):
50 key = check_key(key)

Callers 4

run_testMethod · 0.90
run_testMethod · 0.90
key_to_p2sh_p2wpkhFunction · 0.85
script_to_p2sh_p2wshFunction · 0.85

Calls 3

check_scriptFunction · 0.85
scripthash_to_p2shFunction · 0.85
hash160Function · 0.85

Tested by

no test coverage detected