public class KeyUtils
extends java.lang.Object
构造器和说明 |
---|
KeyUtils() |
限定符和类型 | 方法和说明 |
---|---|
static PkeyInfo |
createPkeyInfo(java.math.BigInteger privateKey,
java.math.BigInteger publicKey,
java.lang.String eccName) |
static PkeyInfo |
createPkeyInfo(java.math.BigInteger privateKey,
java.math.BigInteger publicKey,
java.lang.String eccName,
byte[] chainCode) |
static byte[] |
get65BytePubKey(byte[] pubKey) |
static org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair |
getCryptKeyPair(byte[] privateKey,
EccTypeEnums eccTypeEnums) |
static org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair |
getCryptKeyPair(EccTypeEnums eccTypeEnums) |
static java.lang.String |
getCurve(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey privateKey) |
static java.lang.String |
getEccType(org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair cryptoKeyPair) |
static java.security.PublicKey |
getPublicKey(java.security.interfaces.ECPrivateKey privateKey) |
static boolean |
isAddressEquals(java.lang.String address1,
java.lang.String address2) |
public static org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair getCryptKeyPair(EccTypeEnums eccTypeEnums)
public static org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair getCryptKeyPair(byte[] privateKey, EccTypeEnums eccTypeEnums)
public static java.lang.String getEccType(org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair cryptoKeyPair)
public static boolean isAddressEquals(java.lang.String address1, java.lang.String address2)
public static PkeyInfo createPkeyInfo(java.math.BigInteger privateKey, java.math.BigInteger publicKey, java.lang.String eccName)
public static PkeyInfo createPkeyInfo(java.math.BigInteger privateKey, java.math.BigInteger publicKey, java.lang.String eccName, byte[] chainCode)
public static byte[] get65BytePubKey(byte[] pubKey)
public static java.security.PublicKey getPublicKey(java.security.interfaces.ECPrivateKey privateKey) throws java.security.spec.InvalidKeySpecException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
java.security.spec.InvalidKeySpecException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public static java.lang.String getCurve(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey privateKey)