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