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