toggle menu
lattice-kt
1.0-SNAPSHOT
jvm
switch theme
search in API
crypto
/
com.example.crypto
/
getCompressedPublicKey
get
Compressed
Public
Key
fun
ECKeyPair
.
getCompressedPublicKey
(
gm
:
Boolean
=
true
)
:
ByteArray
获取压缩公钥,压缩公钥只包含X坐标和一个额外的标志位(用来标识Y坐标的奇偶性)
Return
压缩公钥(257bit)
Parameters
gm
是否是sm2p256v1