public class PublicKey extends Key
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE
The size of Symbol's public keys.
|
| Constructor and Description |
|---|
PublicKey(java.math.BigInteger value)
Creates a new key from a big int value
|
PublicKey(byte[] bytes)
Creates a new key from the byte array.
|
PublicKey(java.lang.String hex)
Creates a new key from an hex.
|
| Modifier and Type | Method and Description |
|---|---|
static PublicKey |
fromHexString(java.lang.String hex)
Creates a public key from a hex string.
|
static PublicKey |
generateRandom()
Generates a random public key.
|
public static final int SIZE
public PublicKey(byte[] bytes)
bytes - The raw public key value.public PublicKey(java.math.BigInteger value)
value - the valuepublic PublicKey(java.lang.String hex)
hex - the hex.public static PublicKey fromHexString(java.lang.String hex)
hex - The hex string.public static PublicKey generateRandom()