@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | 95 | * @param BufferInterface $buffer |
| 96 | - * @return int |
|
| 96 | + * @return string |
|
| 97 | 97 | */ |
| 98 | 98 | private function parseBuffer(BufferInterface $buffer) |
| 99 | 99 | { |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | /** |
| 180 | - * @return \GMP |
|
| 180 | + * @return resource |
|
| 181 | 181 | */ |
| 182 | 182 | public function getGmp() |
| 183 | 183 | { |
@@ -415,7 +415,7 @@ |
||
| 415 | 415 | } |
| 416 | 416 | |
| 417 | 417 | /** |
| 418 | - * @param array $decoded |
|
| 418 | + * @param Operation[] $decoded |
|
| 419 | 419 | * @param null $solution |
| 420 | 420 | * @return string |
| 421 | 421 | */ |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | - * @param bool|true $accurate |
|
| 105 | + * @param boolean $accurate |
|
| 106 | 106 | * @return int |
| 107 | 107 | */ |
| 108 | 108 | public function countSigOps(bool $accurate = true): int |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use BitWasp\Bitcoin\Address\AddressInterface; |
| 8 | 8 | use BitWasp\Bitcoin\Locktime; |
| 9 | 9 | use BitWasp\Bitcoin\Script\Script; |
| 10 | -use BitWasp\Bitcoin\Script\ScriptFactory; |
|
| 11 | 10 | use BitWasp\Bitcoin\Script\ScriptInterface; |
| 12 | 11 | use BitWasp\Bitcoin\Script\ScriptWitnessInterface; |
| 13 | 12 | use BitWasp\Bitcoin\Transaction\Bip69\Bip69; |
@@ -171,6 +171,7 @@ discard block |
||
| 171 | 171 | * adds them to the script. |
| 172 | 172 | * |
| 173 | 173 | * @param int ...$opcodes |
| 174 | + * @param integer[] $opcodes |
|
| 174 | 175 | * @return $this |
| 175 | 176 | */ |
| 176 | 177 | public function opcode(int ...$opcodes) |
@@ -184,6 +185,7 @@ discard block |
||
| 184 | 185 | * push-data instructions to the script. |
| 185 | 186 | * |
| 186 | 187 | * @param BufferInterface ...$dataList |
| 188 | + * @param BufferInterface[] $dataList |
|
| 187 | 189 | * @return $this |
| 188 | 190 | */ |
| 189 | 191 | public function data(BufferInterface ...$dataList) |
@@ -322,7 +322,7 @@ |
||
| 322 | 322 | } |
| 323 | 323 | |
| 324 | 324 | /** |
| 325 | - * @param array|\stdClass|\Traversable $list |
|
| 325 | + * @param integer[] $list |
|
| 326 | 326 | * @return HierarchicalKey |
| 327 | 327 | * @throws \Exception |
| 328 | 328 | */ |
@@ -162,7 +162,7 @@ |
||
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | /** |
| 165 | - * @param array|\stdClass|\Traversable $list |
|
| 165 | + * @param integer[] $list |
|
| 166 | 166 | * @return MultisigHD |
| 167 | 167 | */ |
| 168 | 168 | public function deriveFromList($list): MultisigHD |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | - * @return BufferInterface |
|
| 91 | + * @return BufferInterface|null |
|
| 92 | 92 | */ |
| 93 | 93 | public function bottom() |
| 94 | 94 | { |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | } |
| 337 | 337 | |
| 338 | 338 | /** |
| 339 | - * @param array $decoded |
|
| 339 | + * @param Operation[] $decoded |
|
| 340 | 340 | * @param null $solution |
| 341 | 341 | * @return null|TimeLock|Checksig |
| 342 | 342 | */ |
@@ -652,8 +652,8 @@ discard block |
||
| 652 | 652 | |
| 653 | 653 | /** |
| 654 | 654 | * @param ScriptInterface $script |
| 655 | - * @param BufferInterface $vchSig |
|
| 656 | - * @param BufferInterface $vchKey |
|
| 655 | + * @param BufferInterface|null $vchSig |
|
| 656 | + * @param BufferInterface|null $vchKey |
|
| 657 | 657 | * @return bool |
| 658 | 658 | */ |
| 659 | 659 | private function checkSignature(ScriptInterface $script, BufferInterface $vchSig, BufferInterface $vchKey) |
@@ -1111,7 +1111,7 @@ discard block |
||
| 1111 | 1111 | } |
| 1112 | 1112 | |
| 1113 | 1113 | /** |
| 1114 | - * @return Checksig[]|Conditional[]|mixed |
|
| 1114 | + * @return Conditional[] |
|
| 1115 | 1115 | */ |
| 1116 | 1116 | public function getSteps() |
| 1117 | 1117 | { |