(self)
| 271 | |
| 272 | # tag::source5[] |
| 273 | def is_p2wsh_script_pubkey(self): |
| 274 | return len(self.cmds) == 2 and self.cmds[0] == 0x00 \ |
| 275 | and type(self.cmds[1]) == bytes and len(self.cmds[1]) == 32 |
| 276 | # end::source5[] |
| 277 | |
| 278 | def address(self, testnet=False): |