1 | <?php |
||
8 | class SignData |
||
9 | { |
||
10 | /** |
||
11 | * @var ScriptInterface |
||
12 | */ |
||
13 | protected $redeemScript = null; |
||
14 | |||
15 | /** |
||
16 | * @var ScriptInterface |
||
17 | */ |
||
18 | protected $witnessScript = null; |
||
19 | |||
20 | /** |
||
21 | * @var int |
||
22 | */ |
||
23 | protected $signaturePolicy = null; |
||
24 | |||
25 | /** |
||
26 | * @var bool[] |
||
27 | */ |
||
28 | protected $logicalPath = null; |
||
29 | |||
30 | /** |
||
31 | * @param ScriptInterface $redeemScript |
||
32 | * @return $this |
||
33 | */ |
||
34 | 17 | public function p2sh(ScriptInterface $redeemScript) |
|
42 | |||
43 | /** |
||
44 | * @return bool |
||
45 | */ |
||
46 | 55 | public function hasRedeemScript() |
|
50 | |||
51 | /** |
||
52 | * @return ScriptInterface |
||
53 | */ |
||
54 | 38 | public function getRedeemScript() |
|
62 | |||
63 | /** |
||
64 | * @param ScriptInterface $witnessScript |
||
65 | * @return $this |
||
66 | */ |
||
67 | 17 | public function p2wsh(ScriptInterface $witnessScript) |
|
72 | |||
73 | /** |
||
74 | * @return bool |
||
75 | */ |
||
76 | 55 | public function hasWitnessScript() |
|
80 | |||
81 | /** |
||
82 | * @return ScriptInterface |
||
83 | */ |
||
84 | 35 | public function getWitnessScript() |
|
92 | |||
93 | /** |
||
94 | * @param int $flags |
||
95 | * @return $this |
||
96 | */ |
||
97 | 16 | public function signaturePolicy($flags) |
|
102 | |||
103 | /** |
||
104 | * @return bool |
||
105 | */ |
||
106 | 85 | public function hasSignaturePolicy() |
|
110 | |||
111 | /** |
||
112 | * @return int |
||
113 | */ |
||
114 | 42 | public function getSignaturePolicy() |
|
121 | |||
122 | /** |
||
123 | * @param bool[] $vfPathTaken |
||
124 | * @return $this |
||
125 | */ |
||
126 | 18 | public function logicalPath(array $vfPathTaken) |
|
137 | |||
138 | /** |
||
139 | * @return bool |
||
140 | */ |
||
141 | public function hasLogicalPath() |
||
145 | |||
146 | /** |
||
147 | * @return bool[] |
||
148 | */ |
||
149 | 11 | public function getLogicalPath() |
|
157 | } |
||
158 |