| Constructor and Description |
|---|
KeyGenerator()
Like
KeyGenerator(String, int) but
automatically suggests a new brain key and uses the sequence 0. |
KeyGenerator(String brainKey,
int sequence)
Create a private and a public key based on the given brain key and the
given sequence.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBrainKey()
Get the generated brain key.
|
eu.bittrade.crypto.core.ECKey |
getPrivateKey()
Get the generated private key.
|
String |
getPrivateKeyAsWIF()
Get the uncompressed private key in a WI-Format.
|
PublicKey |
getPublicKey()
Get the generated public key.
|
static String |
suggestBrainKey()
Generate a new brain key.
|
public KeyGenerator()
throws BeowulfKeyHandlingException
KeyGenerator(String, int) but
automatically suggests a new brain key and uses the sequence 0.BeowulfKeyHandlingException - If the an algorithm used by the random generator and to
generate a private key is not supported on your platform.public KeyGenerator(String brainKey, int sequence) throws BeowulfKeyHandlingException
securerandom.strongAlgorithms Security property.brainKey - The brain key used to generate a new key pair.sequence - The sequence.BeowulfKeyHandlingException - If the an algorithm used by the random generator and to
generate a private key is not supported on your platform.public static String suggestBrainKey() throws BeowulfKeyHandlingException
securerandom.strongAlgorithms Security property.BeowulfKeyHandlingException - If the algorithm used by the random generator is not
supported on your platform.public eu.bittrade.crypto.core.ECKey getPrivateKey()
public String getPrivateKeyAsWIF()
public PublicKey getPublicKey()
public String getBrainKey()
Copyright © 2019. All rights reserved.