ecdh.getPublicKey([encoding][, format])
-
format<string> 默认值:'uncompressed'¥
format<string> Default:'uncompressed' -
返回:<Buffer> | <string> 指定
encoding和format中的 EC Diffie-Hellman 公钥。¥Returns: <Buffer> | <string> The EC Diffie-Hellman public key in the specified
encodingandformat.
format 参数指定点编码,可以是 'compressed' 或 'uncompressed'。如果未指定 format,该点将以 'uncompressed' 格式返回。
¥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.
如果指定了 encoding,则返回一个字符串;否则返回 Buffer。
¥If encoding is specified, a string is returned; otherwise a Buffer is
returned.