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 int $amount |
||
28 | * @param ScriptInterface $scriptPubKey |
||
29 | * @return bool |
||
30 | */ |
||
31 | 54 | public function checkSignature(ConsensusInterface $consensus, $nInput, $amount, ScriptInterface $scriptPubKey) |
|
37 | |||
38 | /** |
||
39 | * @param ConsensusInterface $consensus |
||
40 | * @param TransactionOutputInterface[] $outputs |
||
41 | * @return bool |
||
42 | */ |
||
43 | public function checkSignatures(ConsensusInterface $consensus, array $outputs) |
||
56 | } |
||
57 |