1 | <?php |
||
12 | class P2wshScriptDecorator extends ScriptHashDecorator |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $allowedScriptTypes = [ |
||
18 | ScriptType::P2PKH, |
||
19 | ScriptType::P2PK, |
||
20 | ]; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $decorateType = ScriptType::P2SH; |
||
26 | |||
27 | /** |
||
28 | * @param Key $key |
||
29 | * @return ScriptAndSignData |
||
30 | * @throws \BitWasp\Bitcoin\Exceptions\P2shScriptException |
||
31 | * @throws \BitWasp\Bitcoin\Exceptions\WitnessScriptException |
||
32 | */ |
||
33 | public function convertKey(Key $key) |
||
44 | } |
||
45 |