public class VersionedChecksummedBytes extends Object implements Serializable
In Bitcoin the following format is often used to represent some type of key:
[one version byte] [data bytes] [4 checksum bytes]
and the result is then Base58 encoded. This format is used for addresses, and private keys exported using the dumpprivkey command.
Modifier and Type | Field and Description |
---|---|
protected byte[] |
bytes |
protected int |
version |
Modifier | Constructor and Description |
---|---|
protected |
VersionedChecksummedBytes(int version,
byte[] bytes) |
protected |
VersionedChecksummedBytes(String encoded) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getVersion()
Returns the "version" or "header" byte: the first byte of the data.
|
int |
hashCode() |
String |
toString() |
protected VersionedChecksummedBytes(String encoded) throws AddressFormatException
AddressFormatException
protected VersionedChecksummedBytes(int version, byte[] bytes)
Copyright © 2014. All rights reserved.