Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 42.86% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
10 | class SchnorrSignatureSerializer implements XOnlyPublicKeySerializerInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var EcAdapter |
||
14 | */ |
||
15 | private $ecAdapter; |
||
16 | |||
17 | /** |
||
18 | * @param EcAdapter $ecAdapter |
||
19 | */ |
||
20 | 2361 | public function __construct(EcAdapter $ecAdapter) |
|
21 | { |
||
22 | 2361 | $this->ecAdapter = $ecAdapter; |
|
23 | 2361 | } |
|
24 | |||
25 | /** |
||
26 | * @param XOnlyPubKeyInterface $publicKey |
||
27 | * @return BufferInterface |
||
28 | */ |
||
29 | public function serialize(XOnlyPubKeyInterface $publicKey): BufferInterface |
||
30 | { |
||
31 | throw new \RuntimeException("not implemented"); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param BufferInterface $buffer |
||
36 | * @return XOnlyPubKeyInterface |
||
37 | */ |
||
38 | public function parse(BufferInterface $buffer): XOnlyPubKeyInterface |
||
41 | } |
||
42 | } |
||
43 |