| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 75 | public function checkSignature(ConsensusInterface $consensus, $nInput, TransactionOutputInterface $output) |
|
| 30 | { |
||
| 31 | 75 | $witnesses = $this->transaction->getWitnesses(); |
|
| 32 | 75 | $witness = isset($witnesses[$nInput]) ? $witnesses[$nInput] : null; |
|
| 33 | 75 | return $consensus->verify($this->transaction, $output->getScript(), $nInput, $output->getValue(), $witness); |
|
| 34 | } |
||
| 35 | |||
| 55 |