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