public class DumpedPrivateKey extends VersionedChecksummedBytes
bytes, version| Constructor and Description |
|---|
DumpedPrivateKey(NetworkParameters params,
String encoded)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static DumpedPrivateKey |
fromBase58(NetworkParameters params,
String base58)
Construct a private key from its Base58 representation.
|
ECKey |
getKey()
Returns an ECKey created from this encoded private key.
|
int |
hashCode() |
boolean |
isPubKeyCompressed()
Returns true if the public key corresponding to this private key is compressed.
|
clone, compareTo, getVersion, toBase58, toString@Deprecated public DumpedPrivateKey(@Nullable NetworkParameters params, String encoded) throws AddressFormatException
fromBase58(NetworkParameters, String)AddressFormatExceptionpublic static DumpedPrivateKey fromBase58(@Nullable NetworkParameters params, String base58) throws AddressFormatException
params - The expected NetworkParameters or null if you don't want validation.base58 - The textual form of the private key.AddressFormatException - if the given base58 doesn't parse or the checksum is invalidWrongNetworkException - if the given private key is valid but for a different chain (eg testnet vs mainnet)public ECKey getKey()
public boolean isPubKeyCompressed()
public boolean equals(Object o)
equals in class VersionedChecksummedBytespublic int hashCode()
hashCode in class VersionedChecksummedBytesCopyright © 2018. All rights reserved.