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

Function script_to_p2sh

test/functional/test_framework/address.py:116–118  ·  view source on GitHub ↗
(script, main=False, prefix=75)

Source from the content-addressed store, hash-verified

114 return keyhash_to_p2pkh(hash160(key), main, **kwargs)
115
116def script_to_p2sh(script, main=False, prefix=75):
117 script = check_script(script)
118 return scripthash_to_p2sh(hash160(script), main, prefix)
119
120def key_to_p2sh_p2wpkh(key, main=False, **kwargs):
121 key = check_key(key)

Callers 5

run_testMethod · 0.90
get_multisigFunction · 0.90
key_to_p2sh_p2wpkhFunction · 0.70
script_to_p2sh_p2wshFunction · 0.70

Calls 3

check_scriptFunction · 0.70
scripthash_to_p2shFunction · 0.70
hash160Function · 0.70

Tested by

no test coverage detected