public class ECKeyPair
extends java.lang.Object
| 构造器和说明 |
|---|
ECKeyPair(java.math.BigInteger privateKey,
java.math.BigInteger publicKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ECKeyPair |
createWithKeyPair(java.security.KeyPair keyPair) |
static ECKeyPair |
createWithPrivateKey(java.math.BigInteger privateKey) |
static ECKeyPair |
createWithPrivateKey(java.math.BigInteger privateKey,
boolean compressed) |
static ECKeyPair |
createWithPrivateKey(byte[] privateKey) |
static ECKeyPair |
createWithPrivateKey(java.lang.String privateKeyHex,
boolean compressed) |
boolean |
equals(java.lang.Object o) |
java.math.BigInteger |
getPrivateKey() |
java.math.BigInteger |
getPublicKey() |
int |
hashCode() |
static java.math.BigInteger |
publicKeyFromPrivate(java.math.BigInteger privateKey)
Returns public key from the given private key.
|
static java.math.BigInteger |
publicKeyFromPrivate(java.math.BigInteger privateKey,
boolean compressed)
Returns public key from the given private key.
|
static java.lang.String |
publicKeyFromPrivate(java.lang.String privateKeyHex) |
public java.math.BigInteger getPrivateKey()
public java.math.BigInteger getPublicKey()
public static ECKeyPair createWithKeyPair(java.security.KeyPair keyPair)
public static ECKeyPair createWithPrivateKey(java.math.BigInteger privateKey, boolean compressed)
public static ECKeyPair createWithPrivateKey(java.lang.String privateKeyHex, boolean compressed)
public static ECKeyPair createWithPrivateKey(java.math.BigInteger privateKey)
public static ECKeyPair createWithPrivateKey(byte[] privateKey)
public static java.math.BigInteger publicKeyFromPrivate(java.math.BigInteger privateKey)
privateKey - the private key to derive the public key frompublic static java.lang.String publicKeyFromPrivate(java.lang.String privateKeyHex)
public static java.math.BigInteger publicKeyFromPrivate(java.math.BigInteger privateKey,
boolean compressed)
privateKey - the private key to derive the public key frompublic boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Object