public class ECKeyPair
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PRIVATE_KEY_SIZE |
| Constructor and Description |
|---|
ECKeyPair(java.math.BigInteger privateKey) |
| Modifier and Type | Method and Description |
|---|---|
static ECKeyPair |
create(java.math.BigInteger privateKey) |
static ECKeyPair |
create(byte[] privateKey) |
static ECKeyPair |
create(java.security.KeyPair keyPair) |
static ECKeyPair |
create(java.lang.String privateKey) |
boolean |
equals(java.lang.Object o) |
byte[] |
getEncodedPrivateKey() |
byte[] |
getEncodedPublicKey(boolean compressed) |
java.math.BigInteger |
getPrivateKey() |
java.math.BigInteger |
getPublicKey() |
int |
hashCode() |
static byte[] |
publicKeyFromPrivate(java.math.BigInteger privateKey,
boolean compressed)
Returns public key from the given private key.
|
public static final int PRIVATE_KEY_SIZE
public java.math.BigInteger getPrivateKey()
public byte[] getEncodedPrivateKey()
public java.math.BigInteger getPublicKey()
public byte[] getEncodedPublicKey(boolean compressed)
public static ECKeyPair create(java.security.KeyPair keyPair)
public static ECKeyPair create(java.math.BigInteger privateKey)
public static ECKeyPair create(java.lang.String privateKey)
public static ECKeyPair create(byte[] privateKey)
public static byte[] publicKeyFromPrivate(java.math.BigInteger privateKey,
boolean compressed)
privateKey - the private key to derive the public key frompublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object