method ECDH.prototype.getPublicKey
Jump to headingECDH.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 Jump to heading
optional
Jump to headingencoding: nullThe encoding of the return value.
optional
Jump to headingformat: ECDHKeyFormat = 'uncompressed'Return Type Jump to heading
BufferThe EC Diffie-Hellman public key in the specified encoding and format.
Jump to headingECDH.prototype.getPublicKey(encoding: BinaryToTextEncoding,format?: ECDHKeyFormat,): stringParameters Jump to heading
Jump to headingencoding: BinaryToTextEncodingoptional
Jump to headingformat: ECDHKeyFormatReturn Type Jump to heading
string