getPublicKey
Returns the Diffie-Hellman public key in the specified encoding. If encoding is provided a string is returned; otherwise a Buffer is returned.
Since
v0.5.0
Parameters
encoding
The encoding of the return value.
Returns the Diffie-Hellman public key in the specified encoding. If encoding is provided a string is returned; otherwise a Buffer is returned.
v0.5.0
The encoding of the return value.