Total Complexity | 7 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
11 | class SignatureSort implements SignatureSortInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var EcAdapterInterface |
||
15 | */ |
||
16 | private $ecAdapter; |
||
17 | |||
18 | /** |
||
19 | * SignatureSort constructor. |
||
20 | * @param EcAdapterInterface $ecAdapter |
||
21 | */ |
||
22 | public function __construct(EcAdapterInterface $ecAdapter = null) |
||
23 | { |
||
24 | $this->ecAdapter = $ecAdapter ?: Bitcoin::getEcAdapter(); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param \BitWasp\Bitcoin\Crypto\EcAdapter\Signature\SignatureInterface[] $signatures |
||
29 | * @param \BitWasp\Bitcoin\Crypto\EcAdapter\Key\PublicKeyInterface[] $publicKeys |
||
30 | * @param BufferInterface $messageHash |
||
31 | * @return \SplObjectStorage |
||
32 | */ |
||
33 | public function link(array $signatures, array $publicKeys, BufferInterface $messageHash): \SplObjectStorage |
||
51 | } |
||
52 | } |
||
53 |