version-0 P2WSH scriptPubKey: OP_0 .
(wscript)
| 135 | |
| 136 | |
| 137 | def p2wsh(wscript): |
| 138 | """version-0 P2WSH scriptPubKey: OP_0 <SHA256(wscript)>.""" |
| 139 | return bytes([0x00, 0x20]) + _sha256(wscript) |
| 140 | |
| 141 | |
| 142 | @unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need') |
no test coverage detected