(key)
| 144 | return script_to_p2sh(p2shscript, main) |
| 145 | |
| 146 | def check_key(key): |
| 147 | if (type(key) is str): |
| 148 | key = bytes.fromhex(key) # Assuming this is hex string |
| 149 | if (type(key) is bytes and (len(key) == 33 or len(key) == 65)): |
| 150 | return key |
| 151 | assert False |
| 152 | |
| 153 | def check_script(script): |
| 154 | if (type(script) is str): |
no test coverage detected