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

Function check_script

test/functional/test_framework/address.py:153–158  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

151 assert False
152
153def check_script(script):
154 if (type(script) is str):
155 script = bytes.fromhex(script) # Assuming this is hex string
156 if (type(script) is bytes or type(script) is CScript):
157 return script
158 assert False
159
160
161class TestFrameworkScript(unittest.TestCase):

Callers 3

script_to_p2shFunction · 0.70
script_to_p2wshFunction · 0.70
script_to_p2sh_p2wshFunction · 0.70

Calls 1

typeClass · 0.50

Tested by

no test coverage detected