method ECDH.prototype.getPublicKey
          
Usage in Deno
import { ECDH } from "node:crypto";
ECDH.prototype.getPublicKey(encoding?: null,format?: ECDHKeyFormat,): Buffer 
      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'
      
    Buffer
      
    The EC Diffie-Hellman public key in the specified encoding and format.
ECDH.prototype.getPublicKey(encoding: BinaryToTextEncoding,format?: ECDHKeyFormat,): string 
      
encoding: BinaryToTextEncoding
      
    optional
format: ECDHKeyFormat
      
    string