From 15060572a93e8d030877f3aa9bbe1657dabfb4a8 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Tue, 15 Jul 2014 13:58:58 +0200 Subject: [PATCH] Fix some exception messages in BIP38PrivateKey. --- .../main/java/com/google/bitcoin/crypto/BIP38PrivateKey.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/google/bitcoin/crypto/BIP38PrivateKey.java b/core/src/main/java/com/google/bitcoin/crypto/BIP38PrivateKey.java index bff6707a..d45a7cca 100644 --- a/core/src/main/java/com/google/bitcoin/crypto/BIP38PrivateKey.java +++ b/core/src/main/java/com/google/bitcoin/crypto/BIP38PrivateKey.java @@ -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