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