public class PrivateKey
extends java.lang.Object
| Constructor and Description |
|---|
PrivateKey(java.math.BigInteger value)
Creates a new private key.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static PrivateKey |
fromDecimalString(java.lang.String decimal)
Creates a private key from a decimal string.
|
static PrivateKey |
fromHexString(java.lang.String hex)
Creates a private key from a hex string.
|
byte[] |
getBytes() |
java.math.BigInteger |
getRaw()
Gets the raw private key value.
|
int |
hashCode() |
java.lang.String |
toString() |
public PrivateKey(java.math.BigInteger value)
value - The raw private key value.public static PrivateKey fromHexString(java.lang.String hex)
hex - The hex string.public static PrivateKey fromDecimalString(java.lang.String decimal)
decimal - The decimal string.public java.math.BigInteger getRaw()
public byte[] getBytes()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object