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