public class DumpedPrivateKey extends VersionedChecksummedBytes
bytes, version
Constructor and Description |
---|
DumpedPrivateKey(NetworkParameters params,
String encoded)
Parses the given private key as created by the "dumpprivkey" Bitcoin C++ RPC.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
ECKey |
getKey()
Returns an ECKey created from this encoded private key.
|
int |
hashCode() |
getVersion, toString
public DumpedPrivateKey(NetworkParameters params, String encoded) throws AddressFormatException
params
- The expected network parameters of the key. If you don't care, provide null.encoded
- The base58 encoded string.AddressFormatException
- If the string is invalid or the header byte doesn't match the network params.public ECKey getKey()
public boolean equals(Object other)
equals
in class VersionedChecksummedBytes
public int hashCode()
hashCode
in class VersionedChecksummedBytes
Copyright © 2014. All rights reserved.