1 | <?php |
||
8 | class P2shScript extends Script |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var ScriptHashAddress |
||
13 | */ |
||
14 | private $address; |
||
15 | |||
16 | /** |
||
17 | * @var ScriptInterface |
||
18 | */ |
||
19 | private $outputScript; |
||
20 | |||
21 | /** |
||
22 | * P2shScript constructor. |
||
23 | * @param ScriptInterface $script |
||
24 | * @param Opcodes|null $opcodes |
||
25 | * @throws P2shScriptException |
||
26 | */ |
||
27 | 24 | public function __construct(ScriptInterface $script, Opcodes $opcodes = null) |
|
40 | |||
41 | /** |
||
42 | * @throws P2shScriptException |
||
43 | */ |
||
44 | 2 | public function getWitnessScriptHash() |
|
48 | |||
49 | /** |
||
50 | * @return ScriptInterface |
||
51 | */ |
||
52 | 8 | public function getOutputScript() |
|
56 | |||
57 | /** |
||
58 | * @return \BitWasp\Bitcoin\Address\ScriptHashAddress |
||
59 | */ |
||
60 | 10 | public function getAddress() |
|
64 | } |
||
65 |