1 | <?php |
||
14 | class PublicKeyFactory |
||
15 | { |
||
16 | /** |
||
17 | * @param string $hex |
||
18 | * @param EcAdapterInterface|null $ecAdapter |
||
19 | * @return PublicKeyInterface |
||
20 | * @throws \Exception |
||
21 | */ |
||
22 | 84 | public static function fromHex(string $hex, EcAdapterInterface $ecAdapter = null): PublicKeyInterface |
|
26 | |||
27 | /** |
||
28 | * @param BufferInterface $buffer |
||
29 | * @param EcAdapterInterface|null $ecAdapter |
||
30 | * @return PublicKeyInterface |
||
31 | */ |
||
32 | 106 | public static function fromBuffer(BufferInterface $buffer, EcAdapterInterface $ecAdapter = null): PublicKeyInterface |
|
38 | } |
||
39 |