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