method ECDH.prototype.getPublicKey
Usage
import { ECDH } from "node:crypto";
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.
optional
format: ECDHKeyFormat = 'uncompressed'
encoding: BinaryToTextEncoding
optional
format: ECDHKeyFormat