public class PrivateKey extends Key
Modifier and Type | Field and Description |
---|---|
static int |
SIZE
The size of Symbol's private keys .
|
Constructor and Description |
---|
PrivateKey(java.math.BigInteger value)
Creates a new private key from a big int value.
|
PrivateKey(byte[] bytes) |
PrivateKey(java.lang.String hex) |
Modifier and Type | Method and Description |
---|---|
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.
|
static PrivateKey |
generateRandom()
Generates a random private key.
|
public static final int SIZE
public PrivateKey(java.math.BigInteger value)
value
- the big int.public PrivateKey(byte[] bytes)
public PrivateKey(java.lang.String hex)
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 static PrivateKey generateRandom()