PublicKey
in package
implements
PublicKeyInterface
This class serves as public- private key exchange for signature verification
Table of Contents
Interfaces
- PublicKeyInterface
- This is the contract for the PublicKey portion of ECDSA.
Properties
- $adapter : GmpMathInterface
- $curve : CurveFpInterface
- $generator : GeneratorPoint
- $point : PointInterface
Methods
- __construct() : mixed
- Initialize a new PublicKey instance.
- getCurve() : CurveFpInterface
- getGenerator() : GeneratorPoint
- {$inheritDoc}
- getPoint() : PointInterface
Properties
$adapter
private
GmpMathInterface
$adapter
$curve
private
CurveFpInterface
$curve
$generator
private
GeneratorPoint
$generator
$point
private
PointInterface
$point
Methods
__construct()
Initialize a new PublicKey instance.
public
__construct(GmpMathInterface $adapter, GeneratorPoint $generator, PointInterface $point) : mixed
Parameters
- $adapter : GmpMathInterface
- $generator : GeneratorPoint
- $point : PointInterface
getCurve()
public
getCurve() : CurveFpInterface
Tags
Return values
CurveFpInterfacegetGenerator()
{$inheritDoc}
public
getGenerator() : GeneratorPoint
Tags
Return values
GeneratorPointgetPoint()
public
getPoint() : PointInterface