ECDH.prototype.getPrivateKey - Node documentation
method ECDH.prototype.getPrivateKey

Usage in Deno

import { ECDH } from "node:crypto";
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.

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

Parameters

Return Type

string