getPublicKey
fun getPublicKey(encoding: Nothing? = definedExternally, format: ECDHKeyFormat = definedExternally): Buffer<*>(source)
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 specified, a string is returned; otherwise a Buffer is returned.
Since
v0.11.14
Return
The EC Diffie-Hellman public key in the specified encoding and format.
Parameters
encoding
The encoding of the return value.
format='uncompressed'
fun getPublicKey(encoding: BinaryToTextEncoding, format: ECDHKeyFormat = definedExternally): String(source)