method ECDH.prototype.generateKeys
Overload 1
#ECDH.prototype.generateKeys(): BufferGenerates private and public EC Diffie-Hellman key values, and returns
the public key in the specified format and encoding. This key should be
transferred to the other party.
The 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 provided a string is returned; otherwise a Buffer is returned.
Return Type #
Buffer Overload 2
#ECDH.prototype.generateKeys(encoding: BinaryToTextEncoding,format?: ECDHKeyFormat,): stringParameters #
#encoding: BinaryToTextEncoding #format: ECDHKeyFormat optional
Return Type #
string