public class BIP38PrivateKey extends PrefixedChecksummedBytes
Modifier and Type | Class and Description |
---|---|
static class |
BIP38PrivateKey.BadPassphraseException |
Modifier and Type | Field and Description |
---|---|
byte[] |
addressHash |
boolean |
compressed |
byte[] |
content |
boolean |
ecMultiply |
boolean |
hasLotAndSequence |
bytes, params
Modifier and Type | Method and Description |
---|---|
ECKey |
decrypt(java.lang.String passphrase) |
static BIP38PrivateKey |
fromBase58(NetworkParameters params,
java.lang.String base58)
Construct a password-protected private key from its Base58 representation.
|
java.lang.String |
toBase58()
Returns the base58-encoded textual form, including version and checksum bytes.
|
java.lang.String |
toString() |
clone, compareTo, equals, getParameters, hashCode
public final boolean ecMultiply
public final boolean compressed
public final boolean hasLotAndSequence
public final byte[] addressHash
public final byte[] content
public static BIP38PrivateKey fromBase58(NetworkParameters params, java.lang.String base58) throws AddressFormatException
params
- The network parameters of the chain that the key is for.base58
- The textual form of the password-protected private key.AddressFormatException
- if the given base58 doesn't parse or the checksum is invalidpublic java.lang.String toBase58()
public ECKey decrypt(java.lang.String passphrase) throws BIP38PrivateKey.BadPassphraseException
public java.lang.String toString()
toString
in class java.lang.Object