method ECDH.prototype.getPublicKey
Overload 1
#ECDH.prototype.getPublicKey(encoding?: null,format?: ECDHKeyFormat,): BufferThe format argument specifies point encoding and can be 'compressed' or 'uncompressed'. If format is not specified the point will be returned in'uncompressed' format.
If encoding is specified, a string is returned; otherwise a Buffer is
returned.
Parameters #
#encoding: null optional
The encoding of the return value.
#format: ECDHKeyFormat = 'uncompressed' optional
Return Type #
Buffer The EC Diffie-Hellman public key in the specified encoding and format.
Overload 2
#ECDH.prototype.getPublicKey(encoding: BinaryToTextEncoding,format?: ECDHKeyFormat,): stringParameters #
#encoding: BinaryToTextEncoding #format: ECDHKeyFormat optional
Return Type #
string