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