(script, main=False)
| 139 | return program_to_witness(0, hash160(key), main, **kwargs) |
| 140 | |
| 141 | def 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 | |
| 146 | def check_key(key): |
| 147 | if (type(key) is str): |
no test coverage detected