public class DumpedPrivateKey extends PrefixedChecksummedBytes
bytes, params
Modifier and Type | Method and Description |
---|---|
static DumpedPrivateKey |
fromBase58(NetworkParameters params,
java.lang.String base58)
Construct a private key from its Base58 representation.
|
ECKey |
getKey()
Returns an ECKey created from this encoded private key.
|
boolean |
isPubKeyCompressed()
Returns true if the public key corresponding to this private key is compressed.
|
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 static DumpedPrivateKey fromBase58(@Nullable NetworkParameters params, java.lang.String base58) throws AddressFormatException, AddressFormatException.WrongNetwork
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 invalidAddressFormatException.WrongNetwork
- if the given private key is valid but for a different chain (eg testnet vs mainnet)public java.lang.String toBase58()
public ECKey getKey()
public boolean isPubKeyCompressed()
public java.lang.String toString()
toString
in class java.lang.Object