| 1 | <?php |
||
| 13 | class PrivateKeySerializer implements PrivateKeySerializerInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var EcAdapter |
||
| 17 | */ |
||
| 18 | private $ecAdapter; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param EcAdapter $ecAdapter |
||
| 22 | */ |
||
| 23 | public function __construct(EcAdapter $ecAdapter) |
||
| 27 | |||
| 28 | 134 | /** |
|
| 29 | * @param PrivateKeyInterface $privateKey |
||
| 30 | 134 | * @return BufferInterface |
|
| 31 | 134 | */ |
|
| 32 | public function serialize(PrivateKeyInterface $privateKey) |
||
| 36 | |||
| 37 | 98 | /** |
|
| 38 | * @param Parser $parser |
||
| 39 | 98 | * @return PrivateKey |
|
| 40 | 98 | */ |
|
| 41 | 98 | public function fromParser(Parser $parser) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @param BufferInterface|string $string |
||
| 48 | * @return PrivateKey |
||
| 49 | */ |
||
| 50 | public function parse($string) |
||
| 54 | } |
||
| 55 |