3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 15:22:16 +00:00

Fix some exception messages in BIP38PrivateKey.

This commit is contained in:
Andreas Schildbach 2014-07-15 13:58:58 +02:00 committed by Mike Hearn
parent 0addfd63ec
commit 15060572a9

View File

@ -57,9 +57,9 @@ public class BIP38PrivateKey extends VersionedChecksummedBytes {
hasLotAndSequence = (bytes[1] & 0x04) != 0; // bit 2
compressed = (bytes[1] & 0x20) != 0; // bit 5
if ((bytes[1] & 0x01) != 0) // bit 0
throw new AddressFormatException("Bit 0x40 reserved for future use.");
throw new AddressFormatException("Bit 0x01 reserved for future use.");
if ((bytes[1] & 0x02) != 0) // bit 1
throw new AddressFormatException("Bit 0x80 reserved for future use.");
throw new AddressFormatException("Bit 0x02 reserved for future use.");
if ((bytes[1] & 0x08) != 0) // bit 3
throw new AddressFormatException("Bit 0x08 reserved for future use.");
if ((bytes[1] & 0x10) != 0) // bit 4