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

Function script_to_p2sh_p2wsh

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

Source from the content-addressed store, hash-verified

139 return program_to_witness(0, hash160(key), main, **kwargs)
140
141def script_to_p2sh_p2wsh(script, main=False):
142 script = check_script(script)
143 p2shscript = CScript([OP_0, sha256(script)])
144 return script_to_p2sh(p2shscript, main)
145
146def check_key(key):
147 if (type(key) is str):

Callers 3

run_testMethod · 0.90
get_multisigFunction · 0.90
create_witness_txFunction · 0.70

Calls 4

check_scriptFunction · 0.70
CScriptClass · 0.70
sha256Function · 0.70
script_to_p2shFunction · 0.70

Tested by

no test coverage detected