deno.com

method ECDH.prototype.getPrivateKey

Overload 1

#ECDH.prototype.getPrivateKey(): Buffer

If encoding is specified, a string is returned; otherwise a Buffer is returned.

Return Type #

Buffer

The EC Diffie-Hellman in the specified encoding.

Overload 2

#ECDH.prototype.getPrivateKey(encoding: BinaryToTextEncoding): string

Parameters #

Return Type #

string