CompressedPointSerializer
in package
implements
PointSerializerInterface
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- CompressedPointSerializer constructor.
- getPrefix() : string
- serialize() : string
- unserialize() : PointInterface
Properties
$adapter
private
GmpMathInterface
$adapter
$theory
private
NumberTheory
$theory
Methods
__construct()
CompressedPointSerializer constructor.
public
__construct(GmpMathInterface $adapter) : mixed
Parameters
- $adapter : GmpMathInterface
getPrefix()
public
getPrefix(PointInterface $point) : string
Parameters
- $point : PointInterface
Return values
stringserialize()
public
serialize(PointInterface $point) : string
Parameters
- $point : PointInterface
Return values
stringunserialize()
public
unserialize(CurveFpInterface $curve, string $data) : PointInterface
Parameters
- $curve : CurveFpInterface
- $data : string
-
- hex serialized compressed point