| 1 | <?php |
||
| 14 | class PublicKeyFactory |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var PublicKeySerializerInterface |
||
| 18 | */ |
||
| 19 | private $serializer; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * PublicKeyFactory constructor. |
||
| 23 | * @param EcAdapterInterface $ecAdapter |
||
| 24 | */ |
||
| 25 | public function __construct(EcAdapterInterface $ecAdapter) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $hex |
||
| 32 | * @return PublicKeyInterface |
||
| 33 | * @throws \Exception |
||
| 34 | */ |
||
| 35 | public function fromHex(string $hex): PublicKeyInterface |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param BufferInterface $buffer |
||
| 42 | * @return PublicKeyInterface |
||
| 43 | */ |
||
| 44 | public function fromBuffer(BufferInterface $buffer): PublicKeyInterface |
||
| 48 | } |
||
| 49 |