public class AccountKeyPublicUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.bouncycastle.asn1.x9.X9ECParameters |
CURVE_PARAMS |
Constructor and Description |
---|
AccountKeyPublicUtils() |
Modifier and Type | Method and Description |
---|---|
static AccountKeyPublic |
decompressKey(java.lang.String compressedPublicKey)
Deprecated.
|
static org.bouncycastle.math.ec.ECPoint |
getECPoint(java.lang.String key)
Creates ECPoint instance using compressed public key
|
static org.bouncycastle.math.ec.ECPoint |
getECPoint(java.lang.String x,
java.lang.String y)
Creates ECPoint instance using ecc public key x,y coordinates
|
static boolean |
isCompressedPublicKey(java.lang.String key)
Check if the given key is in compressed format.
|
static boolean |
isUncompressedPublicKey(java.lang.String key)
Check if the given key is in compressed format.
|
static java.lang.String |
toCompressedPublicKey(java.math.BigInteger publicKey)
Deprecated.
|
static boolean |
validateXYPoint(java.lang.String compressedPubKey)
Check if the X, Y coordinates included in the public key are valid.
|
static boolean |
validateXYPoint(java.lang.String x,
java.lang.String y)
Check that given X, Y coordinates included in the public key.
|
@Deprecated public static java.lang.String toCompressedPublicKey(java.math.BigInteger publicKey)
publicKey
- uncompressed public key biginteger@Deprecated public static AccountKeyPublic decompressKey(java.lang.String compressedPublicKey)
compressedPublicKey
- compressed public keypublic static org.bouncycastle.math.ec.ECPoint getECPoint(java.lang.String key)
key
- public keypublic static org.bouncycastle.math.ec.ECPoint getECPoint(java.lang.String x, java.lang.String y)
x
- x pointy
- y pointpublic static boolean validateXYPoint(java.lang.String compressedPubKey)
compressedPubKey
- compressed public keypublic static boolean validateXYPoint(java.lang.String x, java.lang.String y)
x
- x pointy
- y pointpublic static boolean isCompressedPublicKey(java.lang.String key)
key
- public keypublic static boolean isUncompressedPublicKey(java.lang.String key)
key
- public key