Package org.bitcoinj.crypto
Class EncodedPrivateKey
- java.lang.Object
-
- org.bitcoinj.crypto.EncodedPrivateKey
-
- Direct Known Subclasses:
BIP38PrivateKey
,DumpedPrivateKey
public abstract class EncodedPrivateKey extends java.lang.Object
Some form of string-encoded private key. This form is useful for noting them down, e.g. on paper wallets.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EncodedPrivateKey(Network network, byte[] bytes)
protected
EncodedPrivateKey(NetworkParameters params, byte[] bytes)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
NetworkParameters
getParameters()
Deprecated.Usenetwork()
int
hashCode()
Network
network()
Get the network this data is prefixed with.
-
-
-
Field Detail
-
network
protected final Network network
-
bytes
protected final byte[] bytes
-
-
Constructor Detail
-
EncodedPrivateKey
protected EncodedPrivateKey(Network network, byte[] bytes)
-
EncodedPrivateKey
@Deprecated protected EncodedPrivateKey(NetworkParameters params, byte[] bytes)
Deprecated.
-
-
Method Detail
-
network
public Network network()
Get the network this data is prefixed with.- Returns:
- the Network.
-
getParameters
@Deprecated public final NetworkParameters getParameters()
Deprecated.Usenetwork()
- Returns:
- network this data is valid for
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-