Package org.bitcoinj.core
Class PrefixedChecksummedBytes
java.lang.Object
org.bitcoinj.core.PrefixedChecksummedBytes
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
Address
,BIP38PrivateKey
,DumpedPrivateKey
The following format is often used to represent some type of data (e.g. key or hash of key):
[prefix] [data bytes] [checksum]
and the result is then encoded with some variant of base. This format is most commonly used for addresses and private keys exported using Bitcoin Core's dumpprivkey command.
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
PrefixedChecksummedBytes
(NetworkParameters params, byte[] bytes) -
Method Summary
Modifier and TypeMethodDescriptionclone()
This implementation narrows the return type toPrefixedChecksummedBytes
and allows subclasses to throwCloneNotSupportedException
even though it is never thrown by this implementation.boolean
final NetworkParameters
int
hashCode()
-
Field Details
-
params
-
bytes
protected final byte[] bytes
-
-
Constructor Details
-
PrefixedChecksummedBytes
-
-
Method Details
-
getParameters
- Returns:
- network this data is valid for
-
hashCode
public int hashCode() -
equals
-
clone
This implementation narrows the return type toPrefixedChecksummedBytes
and allows subclasses to throwCloneNotSupportedException
even though it is never thrown by this implementation.- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-