| 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 | public function __construct(TransactionInterface $transaction) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param ConsensusInterface $consensus |
||
| 26 | * @param int $nInput |
||
| 27 | * @param ScriptInterface $scriptPubKey |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | public function checkSignature(ConsensusInterface $consensus, $nInput, ScriptInterface $scriptPubKey) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param ConsensusInterface $consensus |
||
| 37 | * @param array $scriptPubKeys |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | public function checkSignatures(ConsensusInterface $consensus, array $scriptPubKeys) |
||
| 53 | } |
||
| 54 |