public class BIP38PrivateKey extends VersionedChecksummedBytes
| 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 |
NetworkParameters |
params |
bytes, version| Constructor and Description |
|---|
BIP38PrivateKey(NetworkParameters params,
String encoded)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ECKey |
decrypt(String passphrase) |
boolean |
equals(Object o) |
static BIP38PrivateKey |
fromBase58(NetworkParameters params,
String base58)
Construct a password-protected private key from its Base58 representation.
|
int |
hashCode() |
clone, compareTo, getVersion, toBase58, toStringpublic transient NetworkParameters params
public final boolean ecMultiply
public final boolean compressed
public final boolean hasLotAndSequence
public final byte[] addressHash
public final byte[] content
@Deprecated public BIP38PrivateKey(NetworkParameters params, String encoded) throws AddressFormatException
fromBase58(NetworkParameters, String)AddressFormatExceptionpublic static BIP38PrivateKey fromBase58(NetworkParameters params, 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 ECKey decrypt(String passphrase) throws BIP38PrivateKey.BadPassphraseException
public boolean equals(Object o)
equals in class VersionedChecksummedBytespublic int hashCode()
hashCode in class VersionedChecksummedBytesCopyright © 2018. All rights reserved.