| 1 | <?php |
||
| 7 | class Validator implements ValidatorInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var TransactionInterface |
||
| 11 | */ |
||
| 12 | private $transaction; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Validator constructor. |
||
| 16 | * @param TransactionInterface $transaction |
||
| 17 | */ |
||
| 18 | 27 | public function __construct(TransactionInterface $transaction) |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @param ConsensusInterface $consensus |
||
| 25 | * @param int $flags |
||
| 26 | * @param int $nInput |
||
| 27 | * @param TransactionOutputInterface $output |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | 27 | public function checkSignature(ConsensusInterface $consensus, $flags, $nInput, TransactionOutputInterface $output) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @param ConsensusInterface $consensus |
||
| 39 | * @param int $flags |
||
| 40 | * @param TransactionOutputInterface[] $outputs |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | public function checkSignatures(ConsensusInterface $consensus, $flags, array $outputs) |
||
| 56 | } |
||
| 57 |