| 1 | <?php |
||
| 15 | class PublicKeyFactory |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var PublicKeySerializerInterface |
||
| 19 | */ |
||
| 20 | private $serializer; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * PublicKeyFactory constructor. |
||
| 24 | * @param EcAdapterInterface $ecAdapter |
||
| 25 | */ |
||
| 26 | 108 | public function __construct(EcAdapterInterface $ecAdapter = null) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $hex |
||
| 34 | * @return PublicKeyInterface |
||
| 35 | * @throws \Exception |
||
| 36 | */ |
||
| 37 | 90 | public function fromHex(string $hex): PublicKeyInterface |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param BufferInterface $buffer |
||
| 44 | * @return PublicKeyInterface |
||
| 45 | */ |
||
| 46 | 92 | public function fromBuffer(BufferInterface $buffer): PublicKeyInterface |
|
| 50 | } |
||
| 51 |