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() |
clone, compareTo, getVersion, toBase58, toString
@Deprecated public DumpedPrivateKey(@Nullable NetworkParameters params, String encoded) throws AddressFormatException
fromBase58(NetworkParameters, String)
AddressFormatException
public 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 equals(Object o)
equals
in class VersionedChecksummedBytes
public int hashCode()
hashCode
in class VersionedChecksummedBytes
Copyright © 2016. All rights reserved.