1 | <?php |
||
14 | class P2shP2wshScriptDecorator extends ScriptHashDecorator |
||
15 | { |
||
16 | /** |
||
17 | * @var string[] |
||
18 | */ |
||
19 | protected $allowedScriptTypes = [ |
||
20 | ScriptType::P2PKH, |
||
21 | ScriptType::P2PK, |
||
22 | ]; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $decorateType = "scripthash|witness_v0_scripthash"; |
||
28 | |||
29 | /** |
||
30 | * @param KeyInterface $key |
||
31 | * @return ScriptAndSignData |
||
32 | * @throws \BitWasp\Bitcoin\Exceptions\P2shScriptException |
||
33 | * @throws \BitWasp\Bitcoin\Exceptions\WitnessScriptException |
||
34 | */ |
||
35 | 2 | public function convertKey(KeyInterface $key): ScriptAndSignData |
|
46 | } |
||
47 |