Signer
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- sign() : SignatureInterface
- verify() : bool
Properties
$adapter
private
GmpMathInterface
$adapter
Methods
__construct()
public
__construct(GmpMathInterface $adapter) : mixed
Parameters
- $adapter : GmpMathInterface
sign()
public
sign(PrivateKeyInterface $key, GMP $truncatedHash, GMP $randomK) : SignatureInterface
Parameters
- $key : PrivateKeyInterface
- $truncatedHash : GMP
-
- hash truncated for use in ECDSA
- $randomK : GMP
Return values
SignatureInterfaceverify()
public
verify(PublicKeyInterface $key, SignatureInterface $signature, GMP $hash) : bool
Parameters
- $key : PublicKeyInterface
- $signature : SignatureInterface
- $hash : GMP