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 88098733..bff6707a 100644 --- a/core/src/main/java/com/google/bitcoin/crypto/BIP38PrivateKey.java +++ b/core/src/main/java/com/google/bitcoin/crypto/BIP38PrivateKey.java @@ -84,7 +84,7 @@ public class BIP38PrivateKey extends VersionedChecksummedBytes { content = Arrays.copyOfRange(bytes, 6, 38); } - public ECKey decrypt(String passphrase) throws AddressFormatException, BadPassphraseException { + public ECKey decrypt(String passphrase) throws BadPassphraseException { String normalizedPassphrase = Normalizer.normalize(passphrase, Normalizer.Form.NFC); ECKey key = ecMultiply ? decryptEC(normalizedPassphrase) : decryptNoEC(normalizedPassphrase); Sha256Hash hash = Sha256Hash.createDouble(key.toAddress(params).toString().getBytes(Charsets.US_ASCII));